T - B - public abstract static class Decorator.AbstractBuilder<T,B extends Decorator.AbstractBuilder<T,B>> extends Object
| Modifier and Type | Field and Description |
|---|---|
protected String |
delegateKey |
protected Map<String,Function<T,Object>> |
mappings |
| Constructor and Description |
|---|
AbstractBuilder() |
| Modifier and Type | Method and Description |
|---|---|
B |
compute(String key,
Function<T,Object> mapper)
Associates the specified mapping function with the specified key.
|
B |
computeOnce(String key,
Function<T,Object> mapper)
Associates the specified mapping function with the specified key.
|
B |
delegateKey(String key)
The specified key can be used to obtain the undelying delegate instance.
|
B |
put(String key,
Object value)
Associates the specified value with the specified key.
|
protected abstract B |
self() |
protected String delegateKey
public B put(String key, Object value)
key - value - public B compute(String key, Function<T,Object> mapper)
key - mapper - public B computeOnce(String key, Function<T,Object> mapper)
key - mapper - public B delegateKey(String key)
key - Decorator.KEY_GET_DELEGATEprotected abstract B self()
Copyright © 2020. All rights reserved.