diff options
author | Jesse Morgan <jesse@jesterpm.net> | 2013-11-18 22:28:10 -0800 |
---|---|---|
committer | Jesse Morgan <jesse@jesterpm.net> | 2013-11-18 22:28:10 -0800 |
commit | 330f60ef82abf2b6d4920ac26ed5944c33d87696 (patch) | |
tree | 96ba447c82c0558e7139b04400632abc7089fbb9 /src/com/p4square/grow/config/Config.java | |
parent | 41a861fc3fa755887cda26ea52cf174911549caf (diff) |
Making strict viewing order configurable.
Diffstat (limited to 'src/com/p4square/grow/config/Config.java')
-rw-r--r-- | src/com/p4square/grow/config/Config.java | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/com/p4square/grow/config/Config.java b/src/com/p4square/grow/config/Config.java index fea75e0..d739d61 100644 --- a/src/com/p4square/grow/config/Config.java +++ b/src/com/p4square/grow/config/Config.java @@ -150,4 +150,18 @@ public class Config { return defaultValue; } + + public boolean getBoolean(String key) { + return getBoolean(key, false); + } + + public boolean getBoolean(String key, boolean defaultValue) { + final String propertyValue = getString(key); + + if (propertyValue != null) { + return (propertyValue.charAt(0) & 0xDF) == 'T'; + } + + return defaultValue; + } } |