Klasse IterableExaminer
java.lang.Object
ch.nolix.core.independent.iterabletool.IterableExaminer
- Alle implementierten Schnittstellen:
IIterableExaminer
- Version:
- 2025-02-07
- Autor:
- Silvan Wyss
-
Konstruktorübersicht
Konstruktoren -
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
-
Konstruktordetails
-
IterableExaminer
public IterableExaminer()
-
-
Methodendetails
-
containsElement
- Angegeben von:
containsElementin SchnittstelleIIterableExaminer- Parameter:
iterable-element-- Gibt zurück:
- true if the given iterable contains the given element, false otherwise.
-
containsElementMultipleTimes
- Angegeben von:
containsElementMultipleTimesin SchnittstelleIIterableExaminer- Parameter:
iterable-element-- Gibt zurück:
- true if the given iterable contains the given element multiple times, false otherwise.
-
containsElementOnce
- Angegeben von:
containsElementOncein SchnittstelleIIterableExaminer- Parameter:
iterable-element-- Gibt zurück:
- true if the given iterable contains the given element exactly 1 time, false otherwise.
-
containsExactlyOneWithStringRepresentation
public boolean containsExactlyOneWithStringRepresentation(Iterable<?> iterable, String stringRepresentation) - Angegeben von:
containsExactlyOneWithStringRepresentationin SchnittstelleIIterableExaminer- Parameter:
iterable-stringRepresentation-- Gibt zurück:
- true if the given iterable contains exactly 1 element with the given stringRepresentation, false otherwise.
-
isEmpty
- Angegeben von:
isEmptyin SchnittstelleIIterableExaminer- Parameter:
iterable-- Gibt zurück:
- true if the given iterable is empty, false otherwise.
-