Klasse AbstractExtendedContainer<E>

java.lang.Object
ch.nolix.core.container.base.AbstractContainer<E>
ch.nolix.core.container.arraylist.AbstractExtendedContainer<E>
Typparameter:
E - is the type of the elements of a AbstractExtendedContainer.
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>
Bekannte direkte Unterklassen:
ArrayContainerView, ArrayList, ContainerView, FilterContainerView, ImmutableList, IntervallContainerView, IterableContainerView, LinkedList, MappingContainerView, Matrix, MatrixColumn, MatrixRow, MultiContainerView, SingleContainer, SqlRecord

public abstract class AbstractExtendedContainer<E> extends AbstractContainer<E>
Autor:
Silvan Wyss
  • Konstruktordetails

    • AbstractExtendedContainer

      public AbstractExtendedContainer()
  • Methodendetails

    • getViewFromOneBasedStartIndexToOneBasedEndIndex

      public final IContainer<E> getViewFromOneBasedStartIndexToOneBasedEndIndex(int oneBasedStartIndex, int oneBasedEndIndex)
      Parameter:
      oneBasedStartIndex -
      oneBasedEndIndex -
      Gibt zurück:
      a new view of the current IIntervallContainerViewProvider from the given oneBasedStartIndex to the given oneBasedEndIndex.
    • getViewOf

      public final <T> IContainer<T> getViewOf(Function<E,T> mapper)
      The time complexity of this implementation is O(n) if the current AbstractContainer contains n elements. The time complexity of this implementation is O(n) if the current AbstractContainer contains n elements.
      Angegeben von:
      getViewOf in Schnittstelle IMappingContainerViewProvider<E>
      Setzt außer Kraft:
      getViewOf in Klasse AbstractContainer<E>
      Typparameter:
      T - is the type of the elements the given mapper maps from the elements of the current IMappingContainerViewProvider.
      Parameter:
      mapper -
      Gibt zurück:
      a new IContainer with the elements the given mapper maps from the elements of the current IMappingContainerViewProvider.
    • getViewOfStoredSelected

      public final IContainer<E> getViewOfStoredSelected(Predicate<E> selector)
      The time complexity of this implementation is O(1).
      Parameter:
      selector -
      Gibt zurück:
      a new IContainer view with the elements the given selector selects from the current IFilteringContainerViewProvider. Ignores null elements.
    • toOrderedList

      public final <C extends Comparable<C>> IContainer<E> toOrderedList(Function<E,C> norm)
      The time complexity of this implementation is O(n * log(n)) if the current AbstractContainer contains n elements.
      Typparameter:
      C - is the type of the Comparables the given comparableMapper returns.
      Parameter:
      norm -
      Gibt zurück:
      a new IContainer with the elements of the current IContainer ordered from the smallest to the biggest element according to the Comparables the given comparableMapper maps from the elements of the current IContainer.