Interface ArrayStore<E>

Type Parameters:
E - Element type for this array
All Superinterfaces:
Store

public interface ArrayStore<E> extends Store
Interface representation of the backing store for an array.
  • Method Details

    • iterator

      Iterator<E> iterator(DNStateManager sm)
      Accessor for an iterator for the array.
      Parameters:
      sm - StateManager for the owner of the array.
      Returns:
      Iterator for the array.
    • getArray

      List<E> getArray(DNStateManager sm)
      Method to retrieve the elements of the array.
      Parameters:
      sm - StateManager for the owner of the array
      Returns:
      The List of elements in the array (in the same order)
    • size

      int size(DNStateManager sm)
      Accessor for the size of the array.
      Parameters:
      sm - StateManager for the owner of the array.
      Returns:
      The size of the array.
    • clear

      void clear(DNStateManager sm)
      Method to clear the array.
      Parameters:
      sm - StateManager for the owner of the array.
    • set

      boolean set(DNStateManager sm, Object array)
      Method to set the elements in the array.
      Parameters:
      sm - StateManager for the owner of the array.
      array - The array
      Returns:
      Whether the elements were added ok