Class PredicateFromMultisetOfDiscardedItems<T>
java.lang.Object
org.aksw.commons.collection.observable.PredicateFromMultisetOfDiscardedItems<T>
- Type Parameters:
T-
- All Implemented Interfaces:
Predicate<T>
A predicate backed by a multiset of items that are considered as discarded.
predicate.test(x) will return false as long as the multiset contains x (true otherwise).
Whenever the multiset contained x then x's cardinality is reduced by 1
(by removing one occurrence of x from the multiset)
This is useful to create collection views that hide a specific number of items.
- Author:
- raven
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionPredicateFromMultisetOfDiscardedItems(com.google.common.collect.Multiset<T> discards) -
Method Summary
-
Field Details
-
discards
-
-
Constructor Details
-
PredicateFromMultisetOfDiscardedItems
-
-
Method Details
-
create
-
test
-