public abstract class AbstractConfig extends Object
Modifier and Type | Field and Description |
---|---|
private boolean |
immutable
Whether this config has been marked immutable.
|
protected Logger |
logger
Logger for this class.
|
Constructor and Description |
---|
AbstractConfig() |
Modifier and Type | Method and Description |
---|---|
void |
checkImmutable()
Verifies if this config is immutable.
|
protected void |
checkStringInput(String s,
boolean allowNull)
Verifies that a string is not null or empty.
|
void |
makeImmutable()
Make this config immutable.
|
protected final Logger logger
private boolean immutable
public void makeImmutable()
public void checkImmutable()
IllegalStateException
- if this config is immutableprotected void checkStringInput(String s, boolean allowNull)
s
- to verifyallowNull
- whether null strings are validIllegalArgumentException
- if the string is null or emptyCopyright © 2003-2019 Virginia Tech. All Rights Reserved.