public class ChainableWrapper<T> extends Object implements Chainable<ChainableWrapper<T>>
Filter.Chain
objects that do not implement Filter.Chain
Map map = new ChainableWrapper <Map>
(new HashMap())
.wrapperchain(m -> m.put("Name", "Value"))
.wrapperchain(m -> m.put("Name2", "Value2"))
.get();
;
Constructor and Description |
---|
ChainableWrapper(T o) |
Modifier and Type | Method and Description |
---|---|
T |
get() |
static <T> ChainableWrapper<T> |
of(T t) |
ChainableWrapper<T> |
wrapperchain(Consumer<T> c) |
public ChainableWrapper(T o)
public T get()
public ChainableWrapper<T> wrapperchain(Consumer<T> c)
public static <T> ChainableWrapper<T> of(T t)
Copyright © 2018. All rights reserved.