| Package | Description |
|---|---|
| com.landawn.abacus.util | |
| com.landawn.abacus.util.stream |
| Modifier and Type | Method and Description |
|---|---|
Multiset<T> |
Multiset.copy() |
<E extends Exception> |
Multiset.filter(Throwables.BiPredicate<? super T,Integer,E> filter) |
<E extends Exception> |
Multiset.filter(Throwables.Predicate<? super T,E> filter) |
static <T> Multiset<T> |
Multiset.from(Collection<? extends T> coll) |
static <T> Multiset<T> |
Multiset.from(Iterator<? extends T> iter) |
static <T> Multiset<T> |
Multiset.from(Map<? extends T,Integer> m) |
static <T> Multiset<T> |
Multiset.of(T... a) |
Multiset<T> |
Multiset.set(T e,
int occurrences)
The element will be removed if the specified count is 0.
|
Multiset<T> |
Multiset.setAll(Collection<? extends T> c,
int occurrences)
Sets the all.
|
Multiset<T> |
Multiset.setAll(Map<? extends T,Integer> m)
Sets the all.
|
Multiset<T> |
Multiset.setAll(Multiset<? extends T> multiset)
Sets the all.
|
Multiset<T> |
ExceptionalStream.toMultiset() |
Multiset<K> |
Multimap.toMultiset() |
Multiset<T> |
ExceptionalStream.toMultiset(Supplier<? extends Multiset<T>> supplier) |
| Modifier and Type | Method and Description |
|---|---|
static <T> Class<Multiset<T>> |
Clazz.ofMultiset() |
static <T> IntFunction<Multiset<T>> |
Fn.Factory.ofMultiset() |
static <T> Supplier<Multiset<T>> |
Fn.Suppliers.ofMultiset() |
static <T> Supplier<Multiset<T>> |
Fn.Suppliers.ofMultiset(Class<? extends Map> valueMapType) |
static <T> Class<Multiset<T>> |
Clazz.ofMultiset(Class<T> eleCls) |
static <T> Supplier<Multiset<T>> |
Fn.Suppliers.ofMultiset(Supplier<? extends Map<T,?>> mapSupplier) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
Multiset.addAll(Multiset<? extends T> multiset)
Adds the all.
|
static If |
If.isNullOrEmpty(Multiset<?> s)
Checks if is null or empty.
|
static If |
If.notNullOrEmpty(Multiset<?> s)
Not null or empty.
|
boolean |
Multiset.removeAll(Multiset<?> multiset)
Removes the all.
|
Multiset<T> |
Multiset.setAll(Multiset<? extends T> multiset)
Sets the all.
|
| Modifier and Type | Method and Description |
|---|---|
<E extends Exception> |
Multiset.accept(Throwables.Consumer<? super Multiset<T>,E> action) |
<E extends Exception> |
Multiset.acceptIfNotEmpty(Throwables.Consumer<? super Multiset<T>,E> action)
Accept if not empty.
|
<R,E extends Exception> |
Multiset.apply(Throwables.Function<? super Multiset<T>,R,E> func) |
<R,E extends Exception> |
Multiset.applyIfNotEmpty(Throwables.Function<? super Multiset<T>,R,E> func)
Apply if not empty.
|
Multiset<T> |
ExceptionalStream.toMultiset(Supplier<? extends Multiset<T>> supplier) |
| Modifier and Type | Method and Description |
|---|---|
static <T> Collector<T,?,Multiset<T>> |
Collectors.toMultiset() |
static <T> Collector<T,?,Multiset<T>> |
Collectors.toMultiset(Supplier<Multiset<T>> supplier) |
| Modifier and Type | Method and Description |
|---|---|
static <T> Collector<T,?,Multiset<T>> |
Collectors.toMultiset(Supplier<Multiset<T>> supplier) |
Copyright © 2021. All rights reserved.