@Value.Immutable
public interface State<T>
| Modifier and Type | Method and Description |
|---|---|
static <T> ImmutableState.Builder<T> |
builder(T current) |
static <A,B,D> State<D> |
merge(State<A> a,
State<B> b,
BiFunction<A,B,D> merge,
TearDown<D>... tearDowns) |
static <T> State<T> |
of(T current,
TearDown<T>... tearDowns) |
Optional<TearDown<T>> |
onTearDown() |
T |
value() |
@Builder.Parameter T value()
static <T> ImmutableState.Builder<T> builder(T current)
@SafeVarargs static <T> State<T> of(T current, TearDown<T>... tearDowns)
@SafeVarargs static <A,B,D> State<D> merge(State<A> a, State<B> b, BiFunction<A,B,D> merge, TearDown<D>... tearDowns)
Copyright © 2017. All rights reserved.