Package overit.geocall.util
Class State.Conf
java.lang.Object
overit.geocall.util.State.Conf
- All Implemented Interfaces:
Serializable
- Enclosing class:
State
Class for the configuration
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetBooleanState(Boolean def) Returns the boolean stategetDate()Returns the change dateReturns the saved stateReturns the stategetStringListState(List<String> def, String delimiter) getStringSetState(Set<String> def) Returns the string set stategetStringSetState(Set<String> def, String delimiter) Returns the string set stategetStringState(String def) Returns the string stategetStringState(String def, String delimiter) Returns the string stategetVarchar(int size) Returns the varchargetVarchar(int size, String delimiter) getVarchar(String delimiter) booleanReturnstrueif the state is the default one,falseotherwisebooleanisSaved()Returns if is savedvoidSets the change datevoidSets the state
-
Field Details
-
state
-
def
-
savedState
-
changeDate
-
-
Constructor Details
-
Conf
Creates an instance of Conf- Parameters:
state- The statesavedState- The saved statedate- The date
-
Conf
Creates an instance of Conf- Parameters:
state- The statedate- The date
-
-
Method Details
-
setState
Sets the state- Parameters:
state- The state
-
getState
Returns the state- Parameters:
def- The default value- Returns:
- The state of the object, returns the default value if the state is null
-
getStringState
Returns the string state- Parameters:
def- The default value- Returns:
- The string representation of the state, default value if the state is null
-
getStringState
Returns the string state- Parameters:
def- The default valuedelimiter- The delimiter character with which the string will be parsed. The delimiter char is considered the character that separates words from each other.- Returns:
- The string representation of the state, default value if the state is null
-
getBooleanState
Returns the boolean state- Parameters:
def- The default value- Returns:
- The boolean representation of the state, default value if the state is null
-
getStringSetState
Returns the string set state- Parameters:
def- The default value- Returns:
- The string set representation of the state, default value if the state is null
-
getStringSetState
Returns the string set state- Parameters:
def- The default value- Returns:
- The string set representation of the state, default value if the state is null
-
getStringListState
-
getDate
Returns the change date- Returns:
- The change date
-
setDate
Sets the change date- Parameters:
d- The change date to set
-
getVarchar
Returns the varchar- Parameters:
size- Not used- Returns:
- The varchar
-
getVarchar
-
getVarchar
-
isDefault
public boolean isDefault()Returnstrueif the state is the default one,falseotherwise- Returns:
trueif the state is the default one,falseotherwise
-
isSaved
public boolean isSaved()Returns if is saved- Returns:
- If is saved
-
getSavedState
Returns the saved state- Returns:
- The saved state
-