Updated comments
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user