Class BaseConfiguration<T extends BaseProperty>

  • Type Parameters:
    T - the type of property that this instance is used for
    Direct Known Subclasses:
    UdbConfiguration

    public abstract class BaseConfiguration<T extends BaseProperty>
    extends java.lang.Object
    This represents a configuration of the catalog.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.util.concurrent.ConcurrentHashMap<java.lang.String,​java.lang.String> mValues  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected BaseConfiguration()  
        BaseConfiguration​(java.util.Map<java.lang.String,​java.lang.String> values)
      Creates an instance.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String get​(T property)
      Returns the value of this property, or the default value if the property is not defined.
      boolean getBoolean​(T property)
      Return the boolean value of this property.
      int getInt​(T property)
      Return the int value of this property , or the default value if the property is not defined.
      java.util.Map<java.lang.String,​java.lang.String> getMap()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • mValues

        protected final java.util.concurrent.ConcurrentHashMap<java.lang.String,​java.lang.String> mValues
    • Constructor Detail

      • BaseConfiguration

        protected BaseConfiguration()
      • BaseConfiguration

        public BaseConfiguration​(java.util.Map<java.lang.String,​java.lang.String> values)
        Creates an instance.
        Parameters:
        values - the map of values to copy from
    • Method Detail

      • get

        public java.lang.String get​(T property)
        Returns the value of this property, or the default value if the property is not defined.
        Parameters:
        property - the property to get the value for
        Returns:
        the property value
      • getInt

        public int getInt​(T property)
        Return the int value of this property , or the default value if the property is not defined.
        Parameters:
        property - the property to get the int value
        Returns:
        the int value of property
      • getBoolean

        public boolean getBoolean​(T property)
        Return the boolean value of this property.
        Parameters:
        property - the property to get the boolean value
        Returns:
        the boolean value of property
      • getMap

        public java.util.Map<java.lang.String,​java.lang.String> getMap()
        Returns:
        the full map of the configuration