| Package | Description |
|---|---|
| org.docx4j.com.google.common.collect |
| Modifier and Type | Method and Description |
|---|---|
static <T,E,M extends Multiset<E>> |
Multisets.toMultiset(java.util.function.Function<? super T,E> elementFunction,
java.util.function.ToIntFunction<? super T> countFunction,
java.util.function.Supplier<M> multisetSupplier)
Returns a
Collector that accumulates elements into a multiset created via the specified
Supplier, whose elements are the result of applying elementFunction to the
inputs, with counts equal to the result of applying countFunction to the inputs. |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
Multisets.containsOccurrences(Multiset<?> superMultiset,
Multiset<?> subMultiset)
Returns
true if subMultiset.count(o) <= superMultiset.count(o) for all o. |
static boolean |
Multisets.containsOccurrences(Multiset<?> superMultiset,
Multiset<?> subMultiset)
Returns
true if subMultiset.count(o) <= superMultiset.count(o) for all o. |
static boolean |
Multisets.removeOccurrences(Multiset<?> multisetToModify,
Iterable<?> occurrencesToRemove)
For each occurrence of an element
e in occurrencesToRemove, removes one
occurrence of e in multisetToModify. |
static boolean |
Multisets.removeOccurrences(Multiset<?> multisetToModify,
Multiset<?> occurrencesToRemove)
For each occurrence of an element
e in occurrencesToRemove, removes one
occurrence of e in multisetToModify. |
static boolean |
Multisets.removeOccurrences(Multiset<?> multisetToModify,
Multiset<?> occurrencesToRemove)
For each occurrence of an element
e in occurrencesToRemove, removes one
occurrence of e in multisetToModify. |
static boolean |
Multisets.retainOccurrences(Multiset<?> multisetToModify,
Multiset<?> multisetToRetain)
Modifies
multisetToModify so that its count for an element e is at most multisetToRetain.count(e). |
static boolean |
Multisets.retainOccurrences(Multiset<?> multisetToModify,
Multiset<?> multisetToRetain)
Modifies
multisetToModify so that its count for an element e is at most multisetToRetain.count(e). |
Copyright © 2007-2022. All Rights Reserved.