Updated comments
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
//CipherStreamJava/src/main/java/mattrixwv/CipherStreamJava/Atbash.java
|
//CipherStreamJava/src/main/java/mattrixwv/CipherStreamJava/Atbash.java
|
||||||
//Matthew Ellison
|
//Matthew Ellison
|
||||||
// Created: 07-25-21
|
// Created: 07-25-21
|
||||||
//Modified: 12-25-21
|
//Modified: 12-30-21
|
||||||
//This is the declaration of the Atbash class
|
//This is the declaration of the Atbash class
|
||||||
package mattrixwv.CipherStreamJava;
|
package mattrixwv.CipherStreamJava;
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
//CipherStreamJava/src/main/java/mattrixwv/CipherStreamJava/Caesar.java
|
//CipherStreamJava/src/main/java/mattrixwv/CipherStreamJava/Caesar.java
|
||||||
//Matthew Ellison
|
//Matthew Ellison
|
||||||
// Created: 07-25-21
|
// Created: 07-25-21
|
||||||
//Modified: 12-25-21
|
//Modified: 12-30-21
|
||||||
//This is the declaration of the Caesar class
|
//This is the declaration of the Caesar class
|
||||||
package mattrixwv.CipherStreamJava;
|
package mattrixwv.CipherStreamJava;
|
||||||
|
|
||||||
@@ -12,7 +12,7 @@ public class Caesar{
|
|||||||
private int shift; //The amount that you need to shift each letter
|
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 leaveCapitals; //Whether to respect capitals in the output string
|
||||||
private boolean leaveWhitespace; //Whether to respect whitespace 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
|
//Sets shift and makes sure it is within the propper bounds
|
||||||
private void setShift(int shiftAmount){
|
private void setShift(int shiftAmount){
|
||||||
//If you shift more than 26 you will just be wrapping back around again
|
//If you shift more than 26 you will just be wrapping back around again
|
||||||
@@ -127,20 +127,6 @@ public class Caesar{
|
|||||||
public String getOutputString(){
|
public String getOutputString(){
|
||||||
return outputString;
|
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
|
//Sets the shift and inputString and encodes the message
|
||||||
public String encode(int shiftAmount, String inputString){
|
public String encode(int shiftAmount, String inputString){
|
||||||
reset();
|
reset();
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
//CipherStreamJava/src/main/java/mattrixwv/CipherStreamJava/TestAtbash.java
|
//CipherStreamJava/src/main/java/mattrixwv/CipherStreamJava/TestAtbash.java
|
||||||
//Matthew Ellison
|
//Matthew Ellison
|
||||||
// Created: 07-25-21
|
// Created: 07-25-21
|
||||||
//Modified: 12-25-21
|
//Modified: 12-30-21
|
||||||
//These are the tests for the Atbash class
|
//These are the tests for the Atbash class
|
||||||
package mattrixwv.CipherStreamJava;
|
package mattrixwv.CipherStreamJava;
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
//CipherStreamJava/src/test/java/mattrixwv/CipherStreamJava/TestCaesar.java
|
//CipherStreamJava/src/test/java/mattrixwv/CipherStreamJava/TestCaesar.java
|
||||||
//Matthew Ellison
|
//Matthew Ellison
|
||||||
// Created: 07-25-21
|
// Created: 07-25-21
|
||||||
//Modified: 12-25-21
|
//Modified: 12-30-21
|
||||||
//These are the tests for the Caesar class
|
//These are the tests for the Caesar class
|
||||||
package mattrixwv.CipherStreamJava;
|
package mattrixwv.CipherStreamJava;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user