Klasse ArrayContainerView<E>

Typparameter:
E - is the type of the elements of a ArrayContainerView.
Alle implementierten Schnittstellen:
Filterable<E>, Groupable<E>, IContainer<E>, IFilteringContainerViewProvider<E>, IIntervallContainerViewProvider<E>, IMappingContainerViewProvider<E>, Mappable<E>, AggregationRequestable<E>, ArrayMappable<E>, CountRequestable<E>, IndexRequestable<E>, IterableWithCopyableIterator<E>, SingleSearchable<E>, StoringRequestable<E>, StringMappable, EmptinessRequestable, MaterializationRequestable, Iterable<E>

public final class ArrayContainerView<E> extends AbstractExtendedContainer<E>
Version:
2017-11-26
Autor:
Silvan Wyss
  • Methodendetails

    • createEmpty

      public static <E2> ArrayContainerView<E2> createEmpty()
      Typparameter:
      E2 - is the types of the elements of the array of the ArrayContainerView.
      Gibt zurück:
      a new ArrayContainerView for a new empty array.
    • forArray

      public static <E2> ArrayContainerView<E2> forArray(E2[] array)
      Typparameter:
      E2 - is the type of the elements of the given array.
      Parameter:
      array -
      Gibt zurück:
      a new ArrayContainerView for the given array.
      Löst aus:
      ArgumentIsNullException - if the given array is null.
    • getCount

      public int getCount()
      Gibt zurück:
      the number of elements of the current CountRequestable.
    • getStoredAtOneBasedIndex

      public E getStoredAtOneBasedIndex(int oneBasedIndex)
      Parameter:
      oneBasedIndex -
      Gibt zurück:
      the element at the given oneBasedIndex. The element can be null.
    • isMaterialized

      public boolean isMaterialized()
      Gibt zurück:
      true if the current MaterializationRequestable is materialized, false otherwise.
    • iterator

      public CopyableIterator<E> iterator()
    • toString

      public String toString()
      Setzt außer Kraft:
      toString in Klasse Object