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 static class OrderedPropertiesCheck.SequencedProperties extends Properties
Private property implementation that keeps order of properties like in file.
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      A unique serial version identifier.
      See Also:
    • keyList

      private final List<Object> keyList
      Holding the keys in the same order than in the file.
  • Constructor Details

    • SequencedProperties

      private SequencedProperties()
  • Method Details

    • keys

      public Enumeration<Object> keys()
      Returns a copy of the keys.
      Overrides:
      keys in class Properties
    • put

      public Object put(Object key, Object value)
      Puts the value into list by its key.
      Specified by:
      put in interface Map<Object,Object>
      Overrides:
      put in class Properties
      Parameters:
      key - the hashtable key
      value - 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