Package org.assertj.core.internal
Class ElementsSatisfyingConsumer<E>
java.lang.Object
org.assertj.core.internal.ElementsSatisfyingConsumer<E>
- Type Parameters:
E- element type
Wrapper for the list of elements that satisfy certain requirements (expressed as a
Consumer).-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescription(package private)ElementsSatisfyingConsumer(Iterable<? extends E> actual, Consumer<? super E> assertions) privateElementsSatisfyingConsumer(List<E> elements) -
Method Summary
Modifier and TypeMethodDescriptionprivate static <E> List<E> filterByPassingAssertions(Iterable<? extends E> actual, Consumer<? super E> assertions) private static voidremoveFirstReference(Object element, List<?> elements) (package private) ElementsSatisfyingConsumer<E> withoutElement(E element) NewElementsSatisfyingConsumercontaining all elements except the first occurrence of the given element.
-
Field Details
-
elements
-
-
Constructor Details
-
ElementsSatisfyingConsumer
-
ElementsSatisfyingConsumer
-
-
Method Details
-
filterByPassingAssertions
-
getElements
-
withoutElement
NewElementsSatisfyingConsumercontaining all elements except the first occurrence of the given element.This instance is not modified.
- Parameters:
element- the element to remove from the result- Returns:
- all except the given element
-
removeFirstReference
-