Interface IterableContainAnyRequestable
- All Superinterfaces:
EmptinessRequestable
- 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
- Author:
- Silvan Wyss
-
Method Summary
Modifier and TypeMethodDescriptionbooleanThe time complexity of this method is O(1).booleanThe time complexity of this method is O(n) if the currentIterableContainAnyRequestablecontains n elements.booleanThe time complexity of this method is O(1).booleanThe time complexity of this method is O(n) if the current currentIterableContainAnyRequestablecontains n elements.booleanisEmpty()The time complexity of this method is O(1).
-
Method Details
-
containsAny
boolean containsAny()The time complexity of this method is O(1).- Specified by:
containsAnyin interfaceEmptinessRequestable- Returns:
- true if the current
EmptinessRequestablecontains one or several elements, false otherwise
-
containsNonNull
boolean containsNonNull()The time complexity of this method is O(n) if the currentIterableContainAnyRequestablecontains n elements.- Returns:
- true if the current
IterableContainAnyRequestablecontains a non-null element, false otherwise
-
containsOne
boolean containsOne()The time complexity of this method is O(1).- Returns:
- true if the current
IterableContainAnyRequestablecontains exactly 1 element, false otherwise
-
containsOneNoneNull
boolean containsOneNoneNull()The time complexity of this method is O(n) if the current currentIterableContainAnyRequestablecontains n elements.- Returns:
- true if the current
IterableContainAnyRequestablecontains exactly 1 non-null element, false otherwise
-
isEmpty
boolean isEmpty()The time complexity of this method is O(1).- Specified by:
isEmptyin interfaceEmptinessRequestable- Returns:
- true if
EmptinessRequestabledoes not contain an element, false otherwise
-