diff options
| author | Ben Culkin <scorpress@gmail.com> | 2020-10-31 12:45:15 -0400 |
|---|---|---|
| committer | Ben Culkin <scorpress@gmail.com> | 2020-10-31 12:45:15 -0400 |
| commit | d5eaaa14adc980e9b0588a3caf7ee7d81df1183e (patch) | |
| tree | 866603edc90f0e1538e869db8a7732ce8c4bf03c /src/main/java/bjc/everge/ReplOpts.java | |
| parent | e8b01037e47884c10d9f910192ac59cef14d28bf (diff) | |
General cleanup
This does a bunch of structural cleanups to make the code better
Diffstat (limited to 'src/main/java/bjc/everge/ReplOpts.java')
| -rw-r--r-- | src/main/java/bjc/everge/ReplOpts.java | 94 |
1 files changed, 0 insertions, 94 deletions
diff --git a/src/main/java/bjc/everge/ReplOpts.java b/src/main/java/bjc/everge/ReplOpts.java deleted file mode 100644 index debb26e..0000000 --- a/src/main/java/bjc/everge/ReplOpts.java +++ /dev/null @@ -1,94 +0,0 @@ -package bjc.everge; - -import java.io.PrintStream; - -/** - * Options for processing ReplPairs. - * - * @author Ben Culkin. - */ -public class ReplOpts { - /** - * The default priority. - */ - public int defPrior = 0; - - /** - * The default stage. - */ - public int defStage = 0; - - /** - * Whether to process multi-line defns. - */ - public boolean defMulti = false; - - /** - * Default status. - */ - public StageStatus defStatus = StageStatus.BOTH; - - /** - * Enable debug info. - */ - public boolean isDebug = true; - - /** - * Enable trace info. - */ - public boolean isTrace = false; - - /** - * Enable performance info. - */ - public boolean isPerf = false; - - /** - * The stream to print normal output on. - */ - public PrintStream outStream = System.out; - /** - * The stream to print error output on. - */ - public PrintStream errStream = System.err; - - @Override - public int hashCode() { - final int prime = 31; - int result = 1; - result = prime * result + (defMulti ? 1231 : 1237); - result = prime * result + defPrior; - result = prime * result + defStage; - result = prime * result + ((defStatus == null) ? 0 : defStatus.hashCode()); - result = prime * result + (isDebug ? 1231 : 1237); - result = prime * result + (isPerf ? 1231 : 1237); - result = prime * result + (isTrace ? 1231 : 1237); - return result; - } - - @Override - public boolean equals(Object obj) { - if (this == obj) - return true; - if (obj == null) - return false; - if (getClass() != obj.getClass()) - return false; - ReplOpts other = (ReplOpts) obj; - if (defMulti != other.defMulti) - return false; - if (defPrior != other.defPrior) - return false; - if (defStage != other.defStage) - return false; - if (defStatus != other.defStatus) - return false; - if (isDebug != other.isDebug) - return false; - if (isPerf != other.isPerf) - return false; - if (isTrace != other.isTrace) - return false; - return true; - } -} |
