T - type of item element in the collectionpublic class AtLeastCollectionPredicate<T> extends Object implements com.google.common.base.Predicate<Collection<T>>
Predicate which returns true if and only if the number of elements
in the supplied collection is at least the configured minimum value.| Modifier and Type | Field and Description |
|---|---|
private int |
minimum
Minimum element count which will satisfy the condition.
|
| Constructor and Description |
|---|
AtLeastCollectionPredicate() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
apply(Collection<T> input) |
int |
getMinimum()
Returns the minimum number of elements which will result in a
true
result. |
void |
setMinimum(int min)
Sets the minimum number of elements which will result in a
true
result. |
private int minimum
public int getMinimum()
true
result.true
result.public void setMinimum(int min)
true
result.min - minimum number of elements which will result in a true
result.public boolean apply(Collection<T> input)
apply in interface com.google.common.base.Predicate<Collection<T>>Copyright © 1999–2016. All rights reserved.