Schnittstelle IIterableExaminer
- Alle bekannten Implementierungsklassen:
IterableExaminer
public interface IIterableExaminer
- Version:
- 2025-02-07
- Autor:
- Silvan Wyss
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungbooleancontainsElement(Iterable<?> iterable, Object element) booleancontainsElementMultipleTimes(Iterable<?> iterable, Object element) booleancontainsElementOnce(Iterable<?> iterable, Object element) booleancontainsExactlyOneWithStringRepresentation(Iterable<?> iterable, String stringRepresentation) boolean
-
Methodendetails
-
containsElement
- Parameter:
iterable-element-- Gibt zurück:
- true if the given iterable contains the given element, false otherwise.
-
containsElementMultipleTimes
- Parameter:
iterable-element-- Gibt zurück:
- true if the given iterable contains the given element multiple times, false otherwise.
-
containsElementOnce
- Parameter:
iterable-element-- Gibt zurück:
- true if the given iterable contains the given element exactly 1 time, false otherwise.
-
containsExactlyOneWithStringRepresentation
boolean containsExactlyOneWithStringRepresentation(Iterable<?> iterable, String stringRepresentation) - Parameter:
iterable-stringRepresentation-- Gibt zurück:
- true if the given iterable contains exactly 1 element with the given stringRepresentation, false otherwise.
-
isEmpty
- Parameter:
iterable-- Gibt zurück:
- true if the given iterable is empty, false otherwise.
- Löst aus:
RuntimeException- if the given iterable is null.
-