Class Characteristics.ImmutableProperties

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, java.util.Map<java.lang.Object,​java.lang.Object>
    Enclosing class:
    Characteristics

    public static class Characteristics.ImmutableProperties
    extends java.util.Properties
    Read only property set. Once constructed, all methods that modify state will throw UnsupportedOperationException.
    Author:
    Paul Hammant.
    See Also:
    Serialized Form
    • Field Summary

      • Fields inherited from class java.util.Properties

        defaults
    • Constructor Summary

      Constructors 
      Constructor Description
      ImmutableProperties​(java.lang.String name, java.lang.String value)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void clear()
      Read Only Object: will throw UnsupportedOperationException.
      java.lang.Object put​(java.lang.Object key, java.lang.Object value)
      Once object is constructed, this will throw UnsupportedOperationException because this class is a read only wrapper.
      void putAll​(java.util.Map<? extends java.lang.Object,​? extends java.lang.Object> t)
      Read Only Object: will throw UnsupportedOperationException.
      java.lang.Object remove​(java.lang.Object o)
      Read Only Object: will throw UnsupportedOperationException.
      java.lang.Object setProperty​(java.lang.String string, java.lang.String string1)
      Read Only Object: will throw UnsupportedOperationException.
      • Methods inherited from class java.util.Properties

        clone, compute, computeIfAbsent, computeIfPresent, contains, containsKey, containsValue, elements, entrySet, equals, forEach, get, getOrDefault, getProperty, getProperty, hashCode, isEmpty, keys, keySet, list, list, load, load, loadFromXML, merge, propertyNames, putIfAbsent, rehash, remove, replace, replace, replaceAll, save, size, store, store, storeToXML, storeToXML, storeToXML, stringPropertyNames, toString, values
      • Methods inherited from class java.lang.Object

        finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • ImmutableProperties

        public ImmutableProperties​(java.lang.String name,
                                   java.lang.String value)
    • Method Detail

      • remove

        public java.lang.Object remove​(java.lang.Object o)
        Read Only Object: will throw UnsupportedOperationException.
        Specified by:
        remove in interface java.util.Map<java.lang.Object,​java.lang.Object>
        Overrides:
        remove in class java.util.Properties
      • setProperty

        public java.lang.Object setProperty​(java.lang.String string,
                                            java.lang.String string1)
        Read Only Object: will throw UnsupportedOperationException.
        Overrides:
        setProperty in class java.util.Properties
      • clear

        public void clear()
        Read Only Object: will throw UnsupportedOperationException.
        Specified by:
        clear in interface java.util.Map<java.lang.Object,​java.lang.Object>
        Overrides:
        clear in class java.util.Properties
      • put

        public java.lang.Object put​(java.lang.Object key,
                                    java.lang.Object value)
        Once object is constructed, this will throw UnsupportedOperationException because this class is a read only wrapper.
        Specified by:
        put in interface java.util.Map<java.lang.Object,​java.lang.Object>
        Overrides:
        put in class java.util.Properties
      • putAll

        public void putAll​(java.util.Map<? extends java.lang.Object,​? extends java.lang.Object> t)
        Read Only Object: will throw UnsupportedOperationException.
        Specified by:
        putAll in interface java.util.Map<java.lang.Object,​java.lang.Object>
        Overrides:
        putAll in class java.util.Properties