T
- type of defaultpublic class DefaultValueTransformer<T> extends Object implements Lookup, FunctionTransformer<Void,T>, Supplier<T>, ChainAware, Serializable
SeedTransformer
,
Serialized FormConstructor and Description |
---|
DefaultValueTransformer() |
DefaultValueTransformer(T defaultValue) |
Modifier and Type | Method and Description |
---|---|
T |
get() |
Chain |
getChain()
If the processor that implements this is part of a chain, it will return a reference to the chain else null
|
Object |
getDefaultValue()
The Default Value
|
Object |
getPredecessor()
Get the item before this one in the Chain
|
void |
setChain(Chain chain)
If the processor that implements this is part of a chain, it will have a reference to the chain
|
void |
setDefaultValue(T defaultValue)
The Default Value
|
void |
setPredecessor(Object predecessor)
Get the item before this one in the Chain
|
Object |
transform(Object input)
For a Given String, Lookup a value for it
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
apply
public DefaultValueTransformer()
public DefaultValueTransformer(T defaultValue)
public Object transform(Object input)
Lookup
public void setChain(Chain chain)
ChainAware
setChain
in interface ChainAware
chain
- as Chain
public Chain getChain()
ChainAware
getChain
in interface ChainAware
Chain
public Object getPredecessor()
ChainAware
getPredecessor
in interface ChainAware
public void setPredecessor(Object predecessor)
ChainAware
setPredecessor
in interface ChainAware
public Object getDefaultValue()
public void setDefaultValue(T defaultValue)
Copyright © 2018. All rights reserved.