Class State.Conf

java.lang.Object
overit.geocall.util.State.Conf
All Implemented Interfaces:
Serializable
Enclosing class:
State

public static class State.Conf extends Object implements Serializable
Class for the configuration
See Also:
  • Field Details

    • state

      protected Object state
    • def

      protected Object def
    • savedState

      protected String savedState
    • changeDate

      protected Date changeDate
  • Constructor Details

    • Conf

      public Conf(Object state, String savedState, Date date)
      Creates an instance of Conf
      Parameters:
      state - The state
      savedState - The saved state
      date - The date
    • Conf

      public Conf(Object state, Date date)
      Creates an instance of Conf
      Parameters:
      state - The state
      date - The date
  • Method Details

    • setState

      public void setState(Object state)
      Sets the state
      Parameters:
      state - The state
    • getState

      public Object getState(Object def)
      Returns the state
      Parameters:
      def - The default value
      Returns:
      The state of the object, returns the default value if the state is null
    • getStringState

      public String getStringState(String def)
      Returns the string state
      Parameters:
      def - The default value
      Returns:
      The string representation of the state, default value if the state is null
    • getStringState

      public String getStringState(String def, String delimiter)
      Returns the string state
      Parameters:
      def - The default value
      delimiter - 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

      public Boolean getBooleanState(Boolean def)
      Returns the boolean state
      Parameters:
      def - The default value
      Returns:
      The boolean representation of the state, default value if the state is null
    • getStringSetState

      public HashSet<String> getStringSetState(Set<String> def)
      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

      public HashSet<String> getStringSetState(Set<String> def, String delimiter)
      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

      public List<String> getStringListState(List<String> def, String delimiter)
    • getDate

      public Date getDate()
      Returns the change date
      Returns:
      The change date
    • setDate

      public void setDate(Date d)
      Sets the change date
      Parameters:
      d - The change date to set
    • getVarchar

      public String getVarchar(int size)
      Returns the varchar
      Parameters:
      size - Not used
      Returns:
      The varchar
    • getVarchar

      public String getVarchar(int size, String delimiter)
    • getVarchar

      public String getVarchar(String delimiter)
    • isDefault

      public boolean isDefault()
      Returns true if the state is the default one, false otherwise
      Returns:
      true if the state is the default one, false otherwise
    • isSaved

      public boolean isSaved()
      Returns if is saved
      Returns:
      If is saved
    • getSavedState

      public String getSavedState()
      Returns the saved state
      Returns:
      The saved state