public class TypeBooleanTransformer extends Object implements FunctionTransformer
Boolean
object is passed then based on state trueState
or falseState
ill be returned.
Define those as per requirement.Constructor and Description |
---|
TypeBooleanTransformer() |
Modifier and Type | Method and Description |
---|---|
Object |
getFalseState()
if input is
Boolean with state Boolean.FALSE |
Boolean |
getNullDefault()
If input is null then this is returned
|
Object |
getTrueState()
if input is
Boolean with state Boolean.TRUE |
void |
setFalseState(Object falseState)
if input is
Boolean with state Boolean.FALSE |
void |
setNullDefault(Boolean nullDefault)
If input is null then this is returned
|
void |
setTrueState(Object trueState)
if input is
Boolean with state Boolean.TRUE |
Object |
transform(Object input) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
apply
public Object transform(Object input)
transform
in interface org.apache.commons.collections.Transformer
public Boolean getNullDefault()
public void setNullDefault(Boolean nullDefault)
public Object getTrueState()
Boolean
with state Boolean.TRUE
Boolean.TRUE
public void setTrueState(Object trueState)
Boolean
with state Boolean.TRUE
Boolean.TRUE
public Object getFalseState()
Boolean
with state Boolean.FALSE
Boolean.FALSE
public void setFalseState(Object falseState)
Boolean
with state Boolean.FALSE
Boolean.FALSE
Copyright © 2018. All rights reserved.