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) private
ElementsSatisfyingConsumer
(List<E> elements) -
Method Summary
Modifier and TypeMethodDescriptionprivate static <E> List
<E> filterByPassingAssertions
(Iterable<? extends E> actual, Consumer<? super E> assertions) private static void
removeFirstReference
(Object element, List<?> elements) (package private) ElementsSatisfyingConsumer
<E> withoutElement
(E element) NewElementsSatisfyingConsumer
containing all elements except the first occurrence of the given element.
-
Field Details
-
elements
-
-
Constructor Details
-
ElementsSatisfyingConsumer
-
ElementsSatisfyingConsumer
-
-
Method Details
-
filterByPassingAssertions
-
getElements
-
withoutElement
NewElementsSatisfyingConsumer
containing 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
-