Interface IIterableContainObjectExaminer

All Known Subinterfaces:
IIterableExaminer
All Known Implementing Classes:
IterableExaminer

public interface IIterableContainObjectExaminer
Author:
Silvan Wyss
  • Method Details

    • contains

      boolean contains(Iterable<?> iterable, Object object)
      Parameters:
      iterable - the searched Iterable, is considered to be empty when is null
      object -
      Returns:
      true if the given iterable contains the given object, false otherwise
    • containsOnce

      boolean containsOnce(Iterable<?> iterable, Object object)
      Parameters:
      iterable - the searched Iterable, is considered to be empty when is null
      object -
      Returns:
      true if the given iterable contains the given object exactly 1 time, false otherwise
    • containsOnly

      boolean containsOnly(Iterable<?> iterable, Object object)
      Parameters:
      iterable - the searched Iterable, is considered to be empty when is null
      object -
      Returns:
      true if the given iterable contains only the given object, whether 1 or several times, false otherwise