T - public class Builder<T> extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Builder.CollectionBuilder<T,C extends Collection<T>>
The Class CollectionBuilder.
|
static class |
Builder.DataSetBuilder
The Class DataSetBuilder.
|
static class |
Builder.ListBuilder<T,L extends List<T>>
The Class ListBuilder.
|
static class |
Builder.MapBuilder<K,V,M extends Map<K,V>>
The Class MapBuilder.
|
static class |
Builder.MultimapBuilder<K,E,V extends Collection<E>,M extends Multimap<K,E,V>>
The Class MultimapBuilder.
|
static class |
Builder.MultisetBuilder<T>
The Class MultisetBuilder.
|
static class |
Builder.X<T>
The Class X.
|
| Modifier and Type | Method and Description |
|---|---|
<E extends Exception> |
accept(Throwables.Consumer<? super T,E> consumer) |
<R,E extends Exception> |
apply(Throwables.Function<? super T,R,E> func) |
<E extends Exception> |
filter(Throwables.Predicate<? super T,E> predicate) |
<R,E extends Exception> |
map(Throwables.Function<? super T,R,E> mapper) |
static <T,C extends Collection<T>> |
of(C val) |
static Builder.DataSetBuilder |
of(DataSet val) |
static <T,L extends List<T>> |
of(L val) |
static <K,E,V extends Collection<E>,M extends Multimap<K,E,V>> |
of(M val) |
static <K,V,M extends Map<K,V>> |
of(M val) |
static <T> Builder.MultisetBuilder<T> |
of(Multiset<T> val) |
static <T> Builder<T> |
of(T val) |
T |
val() |
public static final <T,L extends List<T>> Builder.ListBuilder<T,L> of(L val) throws IllegalArgumentException
T - L - val - IllegalArgumentException - if the specified val is null.public static final <T,C extends Collection<T>> Builder.CollectionBuilder<T,C> of(C val) throws IllegalArgumentException
T - C - val - IllegalArgumentException - if the specified val is null.public static final <K,V,M extends Map<K,V>> Builder.MapBuilder<K,V,M> of(M val) throws IllegalArgumentException
K - the key typeV - the value typeM - val - IllegalArgumentException - if the specified val is null.public static final <T> Builder.MultisetBuilder<T> of(Multiset<T> val) throws IllegalArgumentException
T - val - IllegalArgumentException - if the specified val is null.public static final <K,E,V extends Collection<E>,M extends Multimap<K,E,V>> Builder.MultimapBuilder<K,E,V,M> of(M val) throws IllegalArgumentException
K - the key typeE - V - the value typeM - val - IllegalArgumentException - if the specified val is null.public static final Builder.DataSetBuilder of(DataSet val) throws IllegalArgumentException
T - val - IllegalArgumentException - if the specified val is null.public static final <T> Builder<T> of(T val)
T - val - IllegalArgumentException - if the specified val is null.public T val()
public <R,E extends Exception> Builder<R> map(Throwables.Function<? super T,R,E> mapper) throws E extends Exception
R - E - mapper - E - the eE extends Exceptionpublic <E extends Exception> u.Optional<T> filter(Throwables.Predicate<? super T,E> predicate) throws E extends Exception
E - predicate - Optional with the value if predicate returns true,
otherwise, return an empty OptionalE - the eE extends Exceptionpublic <E extends Exception> Builder<T> accept(Throwables.Consumer<? super T,E> consumer) throws E extends Exception
E - consumer - E - the eE extends Exceptionpublic <R,E extends Exception> R apply(Throwables.Function<? super T,R,E> func) throws E extends Exception
R - E - func - E - the eE extends ExceptionCopyright © 2021. All rights reserved.