Class OrderedPropertiesCheck.SequencedProperties
java.lang.Object
java.util.Dictionary<Object,Object>
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.
- Since:
- 8.22
-
Field Summary
FieldsModifier and TypeFieldDescriptionHolding the keys in the same order than in the file.private static final longA unique serial version identifier.Fields inherited from class Properties
defaults -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class 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
private static final long serialVersionUIDA unique serial version identifier.- See Also:
-
keyList
-
-
Constructor Details
-
SequencedProperties
private SequencedProperties()
-
-
Method Details
-
keys
-
put
Puts the value into list by its key.- Specified by:
putin interfaceMap<Object,Object> - Overrides:
putin 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
-