Class BaseConfiguration

    • Method Detail

      • clearInternal

        protected void clearInternal()
        Description copied from class: AbstractConfiguration
        Clears the whole configuration. This method is called by clear() after some preparations have been made. This base implementation uses the iterator provided by getKeys() to remove every single property. Subclasses should override this method if there is a more efficient way of clearing the configuration.
        clearInternal in class AbstractConfiguration
      • sizeInternal

        protected int sizeInternal()
        Actually calculates the size of this configuration. This method is called by size() with a read lock held. The base implementation provided here calculates the size based on the iterator returned by getKeys(). Sub classes which can determine the size in a more efficient way should override this method. This implementation obtains the size directly from the map used as data store. So this is a rather efficient implementation.
        sizeInternal in class AbstractConfiguration
        the size of this configuration (i.e. the number of keys)
      • clone

        public Object clone()
        Creates a copy of this object. This implementation will create a deep clone, i.e. the map that stores the properties is cloned, too. So changes performed at the copy won't affect the original and vice versa.
        clone in class BaseEventSource
        the copy