Interface IIterableContainEqualExaminer
- All Known Subinterfaces:
IIterableExaminer
- All Known Implementing Classes:
IterableExaminer
public interface IIterableContainEqualExaminer
- Author:
- Silvan Wyss
-
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsEqual(Iterable<?> iterable, Object object) The time complexity of this method is O(n) if the currentIIterableContainEqualExaminercontains n elements.booleancontainsNoEqual(Iterable<?> iterable, Object object) The time complexity of this method is O(n) if the currentIIterableContainEqualExaminercontains n elements.booleancontainsOneEqual(Iterable<?> iterable, Object object) The time complexity of this method is O(n) if the currentIIterableContainEqualExaminercontains n elements.
-
Method Details
-
containsEqual
The time complexity of this method is O(n) if the currentIIterableContainEqualExaminercontains n elements.- Parameters:
iterable- the searchedIterable, is considered to be empty when is nullobject- the object of which an equal element will be searched for- Returns:
- true if the given iterable contains an element that equals the given object, false otherwise
-
containsNoEqual
The time complexity of this method is O(n) if the currentIIterableContainEqualExaminercontains n elements.- Parameters:
iterable- the searchedIterable, is considered to be empty when is nullobject- the object of which equal elements will be searched for- Returns:
- true if the given iterable does not contain an element that equals the given object, false otherwise
-
containsOneEqual
The time complexity of this method is O(n) if the currentIIterableContainEqualExaminercontains n elements.- Parameters:
iterable- the searchedIterable, is considered to be empty when is nullobject- the object of which exactly 1 equal element will be searched for- Returns:
- true if the given iterable contains exactly 1 element that equals the given object, false otherwise
-