From 931594d5fa9c667df8b2125aff6d5b80772634dc Mon Sep 17 00:00:00 2001 From: Mattrixwv Date: Thu, 30 Dec 2021 19:15:41 -0500 Subject: [PATCH] Updated comments --- .../mattrixwv/CipherStreamJava/Atbash.java | 2 +- .../mattrixwv/CipherStreamJava/Caesar.java | 18 ++---------------- .../mattrixwv/CipherStreamJava/TestAtbash.java | 2 +- .../mattrixwv/CipherStreamJava/TestCaesar.java | 2 +- 4 files changed, 5 insertions(+), 19 deletions(-) diff --git a/src/main/java/mattrixwv/CipherStreamJava/Atbash.java b/src/main/java/mattrixwv/CipherStreamJava/Atbash.java index ead61d1..1ee3b6a 100644 --- a/src/main/java/mattrixwv/CipherStreamJava/Atbash.java +++ b/src/main/java/mattrixwv/CipherStreamJava/Atbash.java @@ -1,7 +1,7 @@ //CipherStreamJava/src/main/java/mattrixwv/CipherStreamJava/Atbash.java //Matthew Ellison // Created: 07-25-21 -//Modified: 12-25-21 +//Modified: 12-30-21 //This is the declaration of the Atbash class package mattrixwv.CipherStreamJava; diff --git a/src/main/java/mattrixwv/CipherStreamJava/Caesar.java b/src/main/java/mattrixwv/CipherStreamJava/Caesar.java index 17c72c6..da919ec 100644 --- a/src/main/java/mattrixwv/CipherStreamJava/Caesar.java +++ b/src/main/java/mattrixwv/CipherStreamJava/Caesar.java @@ -1,7 +1,7 @@ //CipherStreamJava/src/main/java/mattrixwv/CipherStreamJava/Caesar.java //Matthew Ellison // Created: 07-25-21 -//Modified: 12-25-21 +//Modified: 12-30-21 //This is the declaration of the Caesar class package mattrixwv.CipherStreamJava; @@ -12,7 +12,7 @@ public class Caesar{ private int shift; //The amount that you need to shift each letter private boolean leaveCapitals; //Whether to respect capitals in the output string private boolean leaveWhitespace; //Whether to respect whitespace in the output string - private boolean leaveSymbols; //Whether to respect whitespace in the output string + private boolean leaveSymbols; //Whether to respect symbols in the output string //Sets shift and makes sure it is within the propper bounds private void setShift(int shiftAmount){ //If you shift more than 26 you will just be wrapping back around again @@ -127,20 +127,6 @@ public class Caesar{ public String getOutputString(){ return outputString; } - //Returns if capitals should be respected in the output - public boolean getLeaveCapitals(){ - return leaveCapitals; - } - public void setLeaveCapitals(boolean leaveCapitals){ - this.leaveCapitals = leaveCapitals; - } - //Returns if whitespace should be respected in the output - public boolean getLeaveWhitespace(){ - return leaveWhitespace; - } - public void setLeaveWhitespace(boolean leaveWhitespace){ - this.leaveWhitespace = leaveWhitespace; - } //Sets the shift and inputString and encodes the message public String encode(int shiftAmount, String inputString){ reset(); diff --git a/src/test/java/mattrixwv/CipherStreamJava/TestAtbash.java b/src/test/java/mattrixwv/CipherStreamJava/TestAtbash.java index 706d467..42b7955 100644 --- a/src/test/java/mattrixwv/CipherStreamJava/TestAtbash.java +++ b/src/test/java/mattrixwv/CipherStreamJava/TestAtbash.java @@ -1,7 +1,7 @@ //CipherStreamJava/src/main/java/mattrixwv/CipherStreamJava/TestAtbash.java //Matthew Ellison // Created: 07-25-21 -//Modified: 12-25-21 +//Modified: 12-30-21 //These are the tests for the Atbash class package mattrixwv.CipherStreamJava; diff --git a/src/test/java/mattrixwv/CipherStreamJava/TestCaesar.java b/src/test/java/mattrixwv/CipherStreamJava/TestCaesar.java index a03a164..883a929 100644 --- a/src/test/java/mattrixwv/CipherStreamJava/TestCaesar.java +++ b/src/test/java/mattrixwv/CipherStreamJava/TestCaesar.java @@ -1,7 +1,7 @@ //CipherStreamJava/src/test/java/mattrixwv/CipherStreamJava/TestCaesar.java //Matthew Ellison // Created: 07-25-21 -//Modified: 12-25-21 +//Modified: 12-30-21 //These are the tests for the Caesar class package mattrixwv.CipherStreamJava;