Class OrderedPropertiesCheck.SequencedProperties
java.lang.Object
java.util.Dictionary<K,V>
java.util.Hashtable<Object,Object>
java.util.Properties
com.puppycrawl.tools.checkstyle.checks.OrderedPropertiesCheck.SequencedProperties
- All Implemented Interfaces:
Serializable
,Cloneable
,Map<Object,
Object>
- Enclosing class:
- OrderedPropertiesCheck
Private property implementation that keeps order of properties like in file.
-
Nested Class Summary
-
Field Summary
FieldsModifier and TypeFieldDescriptionHolding the keys in the same order as in the file.private static final long
A unique serial version identifier.Fields inherited from class java.util.Properties
defaults
-
Constructor Summary
Constructors -
Method Summary
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, 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:
-
keyList
Holding the keys in the same order as in the file.
-
-
Constructor Details
-
SequencedProperties
private SequencedProperties()
-
-
Method Details
-
keys
Returns a copy of the keys.- Overrides:
keys
in classProperties
-
put
Puts the value into list by its key.- Specified by:
put
in interfaceMap<Object,
Object> - Overrides:
put
in classProperties
- Parameters:
key
- the hashtable keyvalue
- the value- Returns:
- the previous value of the specified key in this hashtable, or null if it did not have one
- Throws:
NullPointerException
- - if the key or value is null
-