public class MapCleanTransformer extends Object implements FunctionTransformer
Map
. If the value passed to the filter
qualifies then the corresponding key, value from the Map will be removedMap
of Null attributes etc.
Constructor and Description |
---|
MapCleanTransformer() |
Modifier and Type | Method and Description |
---|---|
org.apache.commons.collections.Predicate |
getFilter()
If null ; entries with null values in the map will be removed
If the filter is specified and returns true for a given value then it will be removed. |
void |
setFilter(org.apache.commons.collections.Predicate filter)
If null ; entries with null values in the map will be removed
If the filter is specified and returns true for a given value then it will be removed. |
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 org.apache.commons.collections.Predicate getFilter()
public void setFilter(org.apache.commons.collections.Predicate filter)
Copyright © 2018. All rights reserved.