Class PropertyList<T extends Property>

    • Constructor Detail

      • PropertyList

        public PropertyList()
        Default constructor.
      • PropertyList

        public PropertyList​(int initialCapacity)
        Creates a new instance with the specified initial capacity.
        Parameters:
        initialCapacity - the initial capacity of the list
    • Method Detail

      • getProperty

        public final <R> R getProperty​(String aName)
        Returns the first property of specified name.
        Parameters:
        aName - name of property to return
        Returns:
        a property or null if no matching property found
      • getProperties

        public final <C extends TPropertyList<C> getProperties​(String name)
        Returns a list of properties with the specified name.
        Parameters:
        name - name of properties to return
        Returns:
        a property list
      • remove

        public final boolean remove​(Property property)
        Remove a property from the list.
        Parameters:
        property - the property to remove
        Returns:
        true if the list contained the specified property
        See Also:
        List.remove(java.lang.Object)