Interface IterableContainMatchingRequestable<E>

Type Parameters:
E - the type of the elements a IterableContainMatchingRequestable
All Known Subinterfaces:
ExtendedIterable<E>, IAppendableList<E>, IArrayList<E>, ILinkedList<E>, IMatrix<E>, IMatrixColumn<E>, IMatrixRow<E>, ISqlRecord
All Known Implementing Classes:
AbstractExtendedIterable, ArrayExtendedIterableView, ArrayList, ExtendedIterableFilterView, ExtendedIterableIntervalView, ExtendedIterableMapperView, ExtendedIterableView, ImmutableList, IterableExtendedIterableView, LinkedList, Matrix, MatrixColumn, MatrixRow, MultiExtendedIterableView, SqlRecord

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

    • containsMatching

      boolean containsMatching(Predicate<E> selector)
      The time complexity of this method is O(n) if the current IterableContainMatchingRequestable contains n elements.
      Parameters:
      selector - can select elements, is considered not to select any element when is null
      Returns:
      true if the current IterableContainMatchingRequestable contains an element the given selector selects, false otherwise, ignoring null elements
    • containsMatchingOnly

      boolean containsMatchingOnly(Predicate<E> selector)
      The time complexity of this implementation is O(n) if the current IterableContainMatchingRequestable contains n elements.
      Parameters:
      selector - can select elements, is considered not to select any element when is null
      Returns:
      true if the current IterableContainMatchingRequestable contains only elements the given selector selects, but at least 1 time, false otherwise, ignoring null elements
    • containsNoMatching

      boolean containsNoMatching(Predicate<E> selector)
      The time complexity of this method is O(n) if the current IterableContainMatchingRequestable contains n elements.
      Parameters:
      selector - can select elements, is considered not to select any element when is null
      Returns:
      true if the current IterableContainMatchingRequestable does not contain an element the given selector selects, false otherwise, ignoring null elements
      Throws:
      RuntimeException - if the given selector is null
    • containsOneMatching

      boolean containsOneMatching(Predicate<E> selector)
      The time complexity of this method is O(n) if the current IterableContainMatchingRequestable contains n elements.
      Parameters:
      selector - can select elements, is considered not to select any element when is null
      Returns:
      true if the current IterableContainMatchingRequestable contains exactly 1 element the given selector selects, false otherwise, ignoring null elements
      Throws:
      RuntimeException - if the given selector is null