Interface IterableContainObjectRequestable
- 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 IterableContainObjectRequestable
- Author:
- Silvan Wyss
-
Method Summary
Modifier and TypeMethodDescriptionbooleanThe time complexity of this method is O(n) if the currentIterableContainObjectRequestablecontains n elements.booleancontainsOnce(Object object) The time complexity of this method is O(n) if the currentIterableContainObjectRequestablecontains n elements.booleancontainsOnly(Object object) The time complexity of this method is O(n) if the currentIterableContainObjectRequestablecontains n elements.
-
Method Details
-
contains
The time complexity of this method is O(n) if the currentIterableContainObjectRequestablecontains n elements.- Parameters:
object-- Returns:
- true if the current
IterableContainObjectRequestablecontains the given object, false otherwise
-
containsOnce
The time complexity of this method is O(n) if the currentIterableContainObjectRequestablecontains n elements.- Parameters:
object-- Returns:
- true if the current
IterableContainObjectRequestablecontains the given object exactly 1 time, false otherwise
-
containsOnly
The time complexity of this method is O(n) if the currentIterableContainObjectRequestablecontains n elements.- Parameters:
object-- Returns:
- true if the current
IterableContainObjectRequestablecontains only the given object, but at least 1 time, false otherwise
-