public class CollectionPattern<T> extends ObjectPattern<java.util.Collection<T>,CollectionPattern<T>>
ObjectPattern.Capture<T>
Modifier | Constructor and Description |
---|---|
protected |
CollectionPattern() |
Modifier and Type | Method and Description |
---|---|
CollectionPattern<T> |
all(ElementPattern<? extends T> pattern) |
CollectionPattern<T> |
atLeast(int size) |
CollectionPattern<T> |
atLeastOne(ElementPattern<? extends T> pattern) |
CollectionPattern<T> |
empty() |
CollectionPattern<T> |
filter(ElementPattern<? extends T> elementPattern,
ElementPattern<java.util.Collection<T>> continuationPattern) |
CollectionPattern<T> |
first(ElementPattern<? extends T> elementPattern) |
CollectionPattern<T> |
last(ElementPattern elementPattern) |
CollectionPattern<T> |
notEmpty() |
CollectionPattern<T> |
size(int size) |
public CollectionPattern<T> all(ElementPattern<? extends T> pattern)
public CollectionPattern<T> atLeastOne(ElementPattern<? extends T> pattern)
public CollectionPattern<T> filter(ElementPattern<? extends T> elementPattern, ElementPattern<java.util.Collection<T>> continuationPattern)
public CollectionPattern<T> first(ElementPattern<? extends T> elementPattern)
public CollectionPattern<T> empty()
public CollectionPattern<T> notEmpty()
public CollectionPattern<T> atLeast(int size)
public CollectionPattern<T> size(int size)
public CollectionPattern<T> last(ElementPattern elementPattern)