Updated comments

This commit is contained in:
2021-12-30 19:15:41 -05:00
parent b79e19e59b
commit 931594d5fa
4 changed files with 5 additions and 19 deletions

View File

@@ -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;

View File

@@ -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();