Interface IIterableContainEqualExaminer

All Known Subinterfaces:
IIterableExaminer
All Known Implementing Classes:
IterableExaminer

public interface IIterableContainEqualExaminer
Author:
Silvan Wyss
  • Method Details

    • containsEqual

      boolean containsEqual(Iterable<?> iterable, Object object)
      The time complexity of this method is O(n) if the current IIterableContainEqualExaminer contains n elements.
      Parameters:
      iterable - the searched Iterable, is considered to be empty when is null
      object - 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

      boolean containsNoEqual(Iterable<?> iterable, Object object)
      The time complexity of this method is O(n) if the current IIterableContainEqualExaminer contains n elements.
      Parameters:
      iterable - the searched Iterable, is considered to be empty when is null
      object - 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

      boolean containsOneEqual(Iterable<?> iterable, Object object)
      The time complexity of this method is O(n) if the current IIterableContainEqualExaminer contains n elements.
      Parameters:
      iterable - the searched Iterable, is considered to be empty when is null
      object - 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