Class PropertyList

  • All Implemented Interfaces:
    Property, java.io.Serializable, java.lang.Cloneable, java.lang.Iterable<Property>, java.util.Collection<Property>, java.util.List<Property>, java.util.RandomAccess

    public class PropertyList
    extends java.util.ArrayList<Property>
    implements Property
    A list of properties
    See Also:
    Serialized Form
    • Field Summary

      • Fields inherited from class java.util.AbstractList

        modCount
    • Constructor Summary

      Constructors 
      Constructor Description
      PropertyList()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void add​(boolean value)
      Shorthand for add(new PropertyBool(value))
      void add​(double value)
      Shorthand for add(new PropertyDecimal(value))
      void add​(int value)
      Shorthand for add(new PropertyInt(value))
      void add​(long value)
      Shorthand for add(new PropertyLong(value))
      void add​(java.lang.String value)
      Shorthand for add(new PropertyString(value))
      PropertyList addList()
      Shorthand for add(new PropertyList())
      PropertyMap addMap()
      Shorthand for add(new PropertyMap())
      void set​(int index, boolean value)
      Shorthand for add(new PropertyBool(value))
      void set​(int index, double value)
      Shorthand for add(new PropertyDecimal(value))
      void set​(int index, int value)
      Shorthand for add(new PropertyInt(value))
      void set​(int index, long value)
      Shorthand for add(new PropertyLong(value))
      void set​(int index, java.lang.String value)
      Shorthand for add(new PropertyString(value))
      void setList​(int index)
      Shorthand for add(new PropertyList())
      void setMap​(int index)
      Shorthand for add(new PropertyMap())
      java.lang.String toString()  
      void toString​(java.lang.StringBuffer buffer, java.lang.String indentation)
      Fills the given StringBuffer with a clear String-representation of all (possibly nested) property values of this Property object.
      • Methods inherited from class java.util.ArrayList

        add, add, addAll, addAll, clear, clone, contains, ensureCapacity, equals, forEach, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSize
      • Methods inherited from class java.util.AbstractCollection

        containsAll
      • Methods inherited from class java.lang.Object

        finalize, getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface java.util.Collection

        parallelStream, stream, toArray
      • Methods inherited from interface java.util.List

        containsAll
    • Constructor Detail

      • PropertyList

        public PropertyList()
    • Method Detail

      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.util.AbstractCollection<Property>
      • add

        public void add​(boolean value)
        Shorthand for add(new PropertyBool(value))
        Parameters:
        value - The boolean value that shall be added.
      • add

        public void add​(double value)
        Shorthand for add(new PropertyDecimal(value))
        Parameters:
        value - The double value that shall be added.
      • add

        public void add​(int value)
        Shorthand for add(new PropertyInt(value))
        Parameters:
        value - The integer property value that shall be added.
      • add

        public void add​(long value)
        Shorthand for add(new PropertyLong(value))
        Parameters:
        value - The long integer property value that shall be added.
      • add

        public void add​(java.lang.String value)
        Shorthand for add(new PropertyString(value))
        Parameters:
        value - The String property value that shall be added.
      • set

        public void set​(int index,
                        boolean value)
        Shorthand for add(new PropertyBool(value))
        Parameters:
        index - the position in the list where the element should be added.
        value - The boolean value that shall be added.
      • set

        public void set​(int index,
                        double value)
        Shorthand for add(new PropertyDecimal(value))
        Parameters:
        index - the position in the list where the element should be added.
        value - The double value that shall be added.
      • set

        public void set​(int index,
                        int value)
        Shorthand for add(new PropertyInt(value))
        Parameters:
        index - the position in the list where the element should be added.
        value - The integer property value that shall be added.
      • set

        public void set​(int index,
                        long value)
        Shorthand for add(new PropertyLong(value))
        Parameters:
        index - the position in the list where the element should be added.
        value - The long integer property value that shall be added.
      • set

        public void set​(int index,
                        java.lang.String value)
        Shorthand for add(new PropertyString(value))
        Parameters:
        index - the position in the list where the element should be added.
        value - The String property value that shall be added.
      • setList

        public void setList​(int index)
        Shorthand for add(new PropertyList())
        Parameters:
        index - the position in the list where the new list should be added
      • setMap

        public void setMap​(int index)
        Shorthand for add(new PropertyMap())
        Parameters:
        index - the position in the list where the map should be added
      • toString

        public void toString​(java.lang.StringBuffer buffer,
                             java.lang.String indentation)
        Description copied from interface: Property
        Fills the given StringBuffer with a clear String-representation of all (possibly nested) property values of this Property object.

        For that, the given String indentation is used initially and each additional element is shifted by additional whitespaces.

        Specified by:
        toString in interface Property
        Parameters:
        buffer - buffer to append the property to
        indentation - String representing the current indentation.