diff options
| author | Benjamin J. Culkin <bjculkin@mix.wvu.edu> | 2018-09-16 21:28:42 -0300 |
|---|---|---|
| committer | Benjamin J. Culkin <bjculkin@mix.wvu.edu> | 2018-09-16 21:31:19 -0300 |
| commit | 14c444db5bc8dac003cd31283de6484264377004 (patch) | |
| tree | e277e4e781dd93f6d8a29cd2f30b38fc5a43385e /base/src/main/java/bjc/utils/ioutils/format/CLModifiers.java | |
| parent | 2f96f49c2d2c8679841c790e9dd7d9f1b6f3fed1 (diff) | |
Move CL format to submodule
Diffstat (limited to 'base/src/main/java/bjc/utils/ioutils/format/CLModifiers.java')
| -rw-r--r-- | base/src/main/java/bjc/utils/ioutils/format/CLModifiers.java | 66 |
1 files changed, 0 insertions, 66 deletions
diff --git a/base/src/main/java/bjc/utils/ioutils/format/CLModifiers.java b/base/src/main/java/bjc/utils/ioutils/format/CLModifiers.java deleted file mode 100644 index 68127b6..0000000 --- a/base/src/main/java/bjc/utils/ioutils/format/CLModifiers.java +++ /dev/null @@ -1,66 +0,0 @@ -package bjc.utils.ioutils.format; - -/** - * A collection of the modifiers attached to a CL format directive. - * - * @author EVE - * - */ -public class CLModifiers { - /** - * Whether the at mod is on. - */ - public final boolean atMod; - /** - * Whether the colon mod is on. - */ - public final boolean colonMod; - /** - * Whether the dollar mod is on. - */ - public final boolean dollarMod; - /** - * Whether the star mod is on. - */ - public final boolean starMod; - - /** - * Create a new set of CL modifiers. - * - * @param at - * The state of the at mod. - * @param colon - * The state of the colon mod. - * @param dollar - * The state of the dollar mod. - */ - public CLModifiers(boolean at, boolean colon, boolean dollar, boolean star) { - atMod = at; - colonMod = colon; - dollarMod = dollar; - starMod = star; - } - - /** - * Create a set of modifiers from a modifier string. - * - * @param modString - * The string to parse modifiers from. - * @return A set of modifiers matching the string. - */ - public static CLModifiers fromString(String modString) { - boolean atMod = false; - boolean colonMod = false; - boolean dollarMod = false; - boolean starMod = false; - - if(modString != null) { - atMod = modString.contains("@"); - colonMod = modString.contains(":"); - dollarMod = modString.contains("$"); - starMod = modString.contains("*"); - } - - return new CLModifiers(atMod, colonMod, dollarMod, starMod); - } -} |
