Class UniquePropertiesCheck.UniqueProperties

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

    private static final class UniquePropertiesCheck.UniqueProperties
    extends java.util.Properties
    Properties subclass to store duplicated property keys in a separate map.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.util.Map<java.lang.String,​java.util.concurrent.atomic.AtomicInteger> duplicatedKeys
      Map, holding duplicated keys and their count.
      private static long serialVersionUID
      A unique serial version identifier.
      • Fields inherited from class java.util.Properties

        defaults
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private UniqueProperties()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Map<java.lang.String,​java.util.concurrent.atomic.AtomicInteger> getDuplicatedKeys()
      Retrieves a collections of duplicated properties keys.
      java.lang.Object put​(java.lang.Object key, java.lang.Object value)
      Puts the value into properties by the key specified.
      • Methods inherited from class java.util.Properties

        clear, 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, putAll, putIfAbsent, rehash, remove, remove, replace, replace, replaceAll, save, setProperty, size, store, store, storeToXML, storeToXML, storeToXML, stringPropertyNames, toString, values
      • Methods inherited from class java.lang.Object

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

      • duplicatedKeys

        private final java.util.Map<java.lang.String,​java.util.concurrent.atomic.AtomicInteger> duplicatedKeys
        Map, holding duplicated keys and their count. Keys are added here only if they already exist in Properties' inner map.
    • Method Detail

      • put

        public java.lang.Object put​(java.lang.Object key,
                                    java.lang.Object value)
        Puts the value into properties by the key specified.
        Specified by:
        put in interface java.util.Map<java.lang.Object,​java.lang.Object>
        Overrides:
        put in class java.util.Properties
      • getDuplicatedKeys

        public java.util.Map<java.lang.String,​java.util.concurrent.atomic.AtomicInteger> getDuplicatedKeys()
        Retrieves a collections of duplicated properties keys.
        Returns:
        A collection of duplicated keys.