Interface IIterableContainAnyExaminer
- All Known Subinterfaces:
IIterableExaminer
- All Known Implementing Classes:
IterableExaminer
public interface IIterableContainAnyExaminer
- Author:
- Silvan Wyss
-
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsAny(Iterable<?> iterable) The time complexity of this method is O(1).booleancontainsNonNull(Iterable<?> iterable) The time complexity of this method is O(n) if the given iterable contains n elements.booleancontainsOne(Iterable<?> iterable) The time complexity of this method is O(1).booleancontainsOneNoneNull(Iterable<?> iterable) The time complexity of this method is O(n) if the given iterable contains n elements.booleanThe time complexity of this method is O(1).
-
Method Details
-
containsAny
-
containsNonNull
-
containsOne
-
containsOneNoneNull
The time complexity of this method is O(n) if the given iterable contains n elements.- Parameters:
iterable- the searchedIterable, is considered to be empty when is null- Returns:
- true if the given iterable contains exactly 1 non-null element, false otherwise
-
isEmpty
-