Class UniquePropertiesCheck.UniqueProperties
java.lang.Object
java.util.Dictionary<K,V>
java.util.Hashtable<Object,Object>
java.util.Properties
com.puppycrawl.tools.checkstyle.checks.UniquePropertiesCheck.UniqueProperties
- All Implemented Interfaces:
Serializable
,Cloneable
,Map<Object,
Object>
- Enclosing class:
- UniquePropertiesCheck
Properties subclass to store duplicated property keys in a separate map.
-
Nested Class Summary
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Map<String,
AtomicInteger> Map, holding duplicated keys and their count.private static final long
A unique serial version identifier.Fields inherited from class java.util.Properties
defaults
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionRetrieves a collections of duplicated properties keys.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
-
Field Details
-
serialVersionUID
A unique serial version identifier.- See Also:
-
duplicatedKeys
Map, holding duplicated keys and their count. Keys are added here only if they already exist in Properties' inner map.
-
-
Constructor Details
-
UniqueProperties
private UniqueProperties()
-
-
Method Details