Interface IterableContainMatchingRequestable<E>
- Type Parameters:
E- the type of the elements aIterableContainMatchingRequestable
- 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 Summary
Modifier and TypeMethodDescriptionbooleancontainsMatching(Predicate<E> selector) The time complexity of this method is O(n) if the currentIterableContainMatchingRequestablecontains n elements.booleancontainsMatchingOnly(Predicate<E> selector) The time complexity of this implementation is O(n) if the currentIterableContainMatchingRequestablecontains n elements.booleancontainsNoMatching(Predicate<E> selector) The time complexity of this method is O(n) if the currentIterableContainMatchingRequestablecontains n elements.booleancontainsOneMatching(Predicate<E> selector) The time complexity of this method is O(n) if the currentIterableContainMatchingRequestablecontains n elements.
-
Method Details
-
containsMatching
The time complexity of this method is O(n) if the currentIterableContainMatchingRequestablecontains n elements.- Parameters:
selector- can select elements, is considered not to select any element when is null- Returns:
- true if the current
IterableContainMatchingRequestablecontains an element the given selector selects, false otherwise, ignoring null elements
-
containsMatchingOnly
The time complexity of this implementation is O(n) if the currentIterableContainMatchingRequestablecontains n elements.- Parameters:
selector- can select elements, is considered not to select any element when is null- Returns:
- true if the current
IterableContainMatchingRequestablecontains only elements the given selector selects, but at least 1 time, false otherwise, ignoring null elements
-
containsNoMatching
The time complexity of this method is O(n) if the currentIterableContainMatchingRequestablecontains n elements.- Parameters:
selector- can select elements, is considered not to select any element when is null- Returns:
- true if the current
IterableContainMatchingRequestabledoes not contain an element the given selector selects, false otherwise, ignoring null elements - Throws:
RuntimeException- if the given selector is null
-
containsOneMatching
The time complexity of this method is O(n) if the currentIterableContainMatchingRequestablecontains n elements.- Parameters:
selector- can select elements, is considered not to select any element when is null- Returns:
- true if the current
IterableContainMatchingRequestablecontains exactly 1 element the given selector selects, false otherwise, ignoring null elements - Throws:
RuntimeException- if the given selector is null
-