diff options
| author | bjculkin <bjculkin@mix.wvu.edu> | 2018-02-12 22:19:02 -0500 |
|---|---|---|
| committer | bjculkin <bjculkin@mix.wvu.edu> | 2018-02-12 22:19:02 -0500 |
| commit | 32f5da54c628408c96db09d279f3a7ef44b3bd19 (patch) | |
| tree | ef56d04518b8791409ed65db58c304b74b23a01b /base/src/main/java/bjc/utils/ioutils/format/CLModifiers.java | |
| parent | 49cd96c4c5bbb883c0c5c10d7916ad2e93ff2df0 (diff) | |
Update
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 | 33 |
1 files changed, 30 insertions, 3 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 index a695f2f..a535697 100644 --- a/base/src/main/java/bjc/utils/ioutils/format/CLModifiers.java +++ b/base/src/main/java/bjc/utils/ioutils/format/CLModifiers.java @@ -1,18 +1,45 @@ package bjc.utils.ioutils.format;
+/**
+ * A collection of the modifiers attached to a CL format directive.
+ *
+ * @author EVE
+ *
+ */
public class CLModifiers {
- public final boolean atMod;
- public final boolean colonMod;
+ /**
+ * Whether the at mod is on.
+ */
+ public final boolean atMod;
+ /**
+ * Whether the colon mod is on.
+ */
+ public final boolean colonMod;
+ /**
+ * Create a new set of CL modifiers.
+ *
+ * @param at
+ * The state of the at mod.
+ * @param colon
+ * The state of the colon mod.
+ */
public CLModifiers(boolean at, boolean colon) {
atMod = at;
colonMod = colon;
}
+ /**
+ * 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;
- if (modString != null) {
+ if(modString != null) {
atMod = modString.contains("@");
colonMod = modString.contains(":");
}
|
