Class Aggregators.DateMedian
- java.lang.Object
-
- org.openjump.core.ui.plugin.tools.aggregate.Aggregators.DateMedian
-
- All Implemented Interfaces:
Aggregator<Date>
- Enclosing class:
- Aggregators
public static class Aggregators.DateMedian extends Object
-
-
Field Summary
-
Fields inherited from interface org.openjump.core.ui.plugin.tools.aggregate.Aggregator
SEPARATOR_NAME
-
-
Constructor Summary
Constructors Constructor Description DateMedian()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addValue(T object)
Adds a new value to the aggregator.Aggregators.DateMedian
clone()
Create a new Aggregator with the same attributes as this one.String
getName()
Returns the name of this Aggregator.AttributeType
getOutputAttributeType()
Object
getParameter(String name)
Returns parameter value for name parameter.Set<String>
getParameters()
Return parameter names used by this aggregatorDate
getResult()
List<T>
getValues()
boolean
ignoreNull()
Returns true if this aggregator must ignore null values.void
reset()
Reset the aggregator (clear the list of values)void
setIgnoreNull(boolean ignoreNull)
Change the way this aggregator process null values.void
setParameter(String name, Object value)
Set a parameter value for this aggregator.String
toString()
-
-
-
Method Detail
-
clone
public Aggregators.DateMedian clone()
Description copied from interface:Aggregator
Create a new Aggregator with the same attributes as this one.- Specified by:
clone
in interfaceAggregator<Date>
-
getResult
public Date getResult()
- Specified by:
getResult
in interfaceAggregator<Date>
- Returns:
- the aggregated value.
-
getParameters
public Set<String> getParameters()
Description copied from interface:Aggregator
Return parameter names used by this aggregator- Specified by:
getParameters
in interfaceAggregator<T>
- Returns:
- the set of parameters
-
setParameter
public void setParameter(String name, Object value)
Description copied from interface:Aggregator
Set a parameter value for this aggregator.- Specified by:
setParameter
in interfaceAggregator<T>
- Parameters:
name
- the name of the aggregatorvalue
- the new value of the parameter
-
getParameter
public Object getParameter(String name)
Description copied from interface:Aggregator
Returns parameter value for name parameter.- Specified by:
getParameter
in interfaceAggregator<T>
- Parameters:
name
- the name of the parameter
-
getName
public String getName()
Description copied from interface:Aggregator
Returns the name of this Aggregator.- Specified by:
getName
in interfaceAggregator<T>
-
ignoreNull
public boolean ignoreNull()
Description copied from interface:Aggregator
Returns true if this aggregator must ignore null values.- Specified by:
ignoreNull
in interfaceAggregator<T>
-
setIgnoreNull
public void setIgnoreNull(boolean ignoreNull)
Description copied from interface:Aggregator
Change the way this aggregator process null values.- Specified by:
setIgnoreNull
in interfaceAggregator<T>
-
addValue
public void addValue(T object)
Description copied from interface:Aggregator
Adds a new value to the aggregator.- Specified by:
addValue
in interfaceAggregator<T>
- Parameters:
object
- value to be added
-
getValues
public List<T> getValues()
- Specified by:
getValues
in interfaceAggregator<T>
- Returns:
- the values accumulated by this aggregator.
-
getOutputAttributeType
public AttributeType getOutputAttributeType()
- Specified by:
getOutputAttributeType
in interfaceAggregator<T>
- Returns:
- the AttributeType of the aggregated value.
-
reset
public void reset()
Description copied from interface:Aggregator
Reset the aggregator (clear the list of values)- Specified by:
reset
in interfaceAggregator<T>
-
-