Interface StoreList

All Superinterfaces:
Collection<TypedValue<?>>, ComplexData, Iterable<TypedValue<?>>, List<TypedValue<?>>
All Known Implementing Classes:
StoreListImpl

public interface StoreList extends List<TypedValue<?>>, ComplexData
This is the interface for a concrete value of Type.LIST objects. It implements a List of TypedValue objects.

StoreLists also have builder-esque fluent methods for specific types, the with() group of methods.

It inherits support for dot traversal find() from ComplexData

Like all ComplexData objects, StoreList's can be mutable or not; a mutable copy can be made as needed.

  • Method Details

    • hashCode

      int hashCode()
      hashcode() implementations of Complex list objects do not necessarily adhere to the default Java List contract for hashcode.
      Specified by:
      hashCode in interface Collection<TypedValue<?>>
      Specified by:
      hashCode in interface List<TypedValue<?>>
      Overrides:
      hashCode in class Object
      Returns:
      hashcode.
    • newList

      static StoreList newList()
      Canonical away to create a new StoreList instance.
      Returns:
      store list
    • mutableCopy

      StoreList mutableCopy()
      Make a copy of this instance that is assured to be mutable.
      Specified by:
      mutableCopy in interface ComplexData
      Returns:
      mutable copy.
    • with

      default StoreList with(boolean... bools)
      Fluently add boolean values to the list.
      Parameters:
      bools - boolean values
      Returns:
      this list
    • with

      default StoreList with(char... chars)
      Fluently add char values to the list.
      Parameters:
      chars - char values
      Returns:
      this list
    • with

      default StoreList with(int... ints)
      Fluently add a list of integer values to the list.
      Parameters:
      ints - int values
      Returns:
      this list
    • with

      default StoreList with(long... longs)
      Fluently add a list of long values to the list.
      Parameters:
      longs - long values
      Returns:
      this list
    • with

      default StoreList with(double... doubles)
      Fluently add a list of double values to the list.
      Parameters:
      doubles - double values
      Returns:
      this list
    • with

      default StoreList with(String... strings)
      Fluently add a list of strings to the list.
      Parameters:
      strings - string values
      Returns:
      this list
    • with

      default StoreList with(byte[]... bytes)
      Fluently add byte[] values to the list.
      Parameters:
      bytes - bytes values
      Returns:
      this list
    • with

      default StoreList with(StoreMap... maps)
      Fluently add maps values to the list.
      Parameters:
      maps - map values
      Returns:
      this list
    • with

      default StoreList with(StoreList... lists)
      Fluently add a list values to the list.
      Parameters:
      lists - list values
      Returns:
      this list
    • with

      default StoreList with(Cell<?>... cells)
      Fluently add calls (just type and value) to the list.
      Parameters:
      cells - cell values
      Returns:
      this list
    • listOf

      static StoreList listOf(String in) throws ComplexDataParseException
      Construct a single StoreList by parser the provided String
      Parameters:
      in - String representation of the StoreList
      Returns:
      StoreList
      Throws:
      ComplexDataParseException - parse exception
    • listOf

      static StoreList listOf(Reader in) throws ComplexDataParseException
      Construct a single StoreList by parser from the provided Reader. See StoreMap for a further explanation.
      Parameters:
      in - Reader. Needs to be UTF-8 charset if you will be handling UTF characters.
      Returns:
      StoreList
      Throws:
      ComplexDataParseException - parse exception