Class PropertyList<T>

All Implemented Interfaces:
Serializable, Cloneable, Iterable<Property>, Collection<Property>, List<Property>, RandomAccess

public class PropertyList<T> extends ArrayList<Property>

Postman SDK analog: PropertyList

Extends ArrayList with Map like capabilities, including:

  • Support for retrieving by variable key which is always Property.getKey()
  • Support for retrieving by index
  • Support for adding by index
  • Duplicate keys are not allowed
  • Null keys are allowed.
  • Contains returns results based on Property.equals(Object)
  • Set will set the value of the variable in this ListMap if it exists, otherwise it will set the value of the specified index
  • the add method returns false if the specified key already exists in the collection and does not change the collection
See Also:
  • Constructor Details

    • PropertyList

      public PropertyList(ArrayList<Property> vars)
      Returns a PropertyList populated with the contents of vars
      Parameters:
      vars - ArrayList<Property> of variables
    • PropertyList

      public PropertyList()
      Returns an empty PropertyList
  • Method Details