Interface Filterable<E>

Type Parameters:
E - is the type of the elements a Filterable.
All Known Subinterfaces:
IArrayList<E>, IContainer<E>, ILinkedList<E>, IMatrix<E>, IMatrixColumn<E>, IMatrixRow<E>, ISqlRecord
All Known Implementing Classes:
AbstractContainer, AbstractExtendedContainer, ArrayContainerView, ArrayList, ContainerView, FilterContainerView, ImmutableList, IntervallContainerView, IterableContainerView, LinkedList, MappingContainerView, Matrix, MatrixColumn, MatrixRow, MultiContainerView, SingleContainer, SqlRecord

public interface Filterable<E>
Author:
Silvan Wyss
  • Method Details

    • getStoredOfType

      <T extends E> IContainer<T> getStoredOfType(Class<T> type)
      Type Parameters:
      T - is the type of the elements of the returned IContainer.
      Parameters:
      type -
      Returns:
      a new IContainer with the elements from the current Filterable that are of the given type. Ignores null elements.
      Throws:
      RuntimeException - if the given type is null.
    • getStoredOthers

      IContainer<E> getStoredOthers(Predicate<E> selector)
      Parameters:
      selector -
      Returns:
      a new IContainer with the elements from the current Filterable the given selector skips. Ignores null elements.
      Throws:
      RuntimeException - if the given selector is null.
    • getStoredSelected

      IContainer<E> getStoredSelected(Predicate<? super E> selector)
      Parameters:
      selector -
      Returns:
      a new IContainer with the elements the given selector selects from the current Filterable. Ignores null elements.
      Throws:
      RuntimeException - if the given selector is null.