Class Aggregators.IntMedian
- java.lang.Object
-
- org.openjump.core.ui.plugin.tools.aggregate.Aggregators.IntMedian
-
- All Implemented Interfaces:
Aggregator<Integer>
- Enclosing class:
- Aggregators
public static class Aggregators.IntMedian extends Object
-
-
Field Summary
-
Fields inherited from interface org.openjump.core.ui.plugin.tools.aggregate.Aggregator
SEPARATOR_NAME
-
-
Constructor Summary
Constructors Constructor Description IntMedian()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddValue(T object)Adds a new value to the aggregator.Aggregators.IntMedianclone()Create a new Aggregator with the same attributes as this one.StringgetName()Returns the name of this Aggregator.AttributeTypegetOutputAttributeType()ObjectgetParameter(String name)Returns parameter value for name parameter.Set<String>getParameters()Return parameter names used by this aggregatorIntegergetResult()List<T>getValues()booleanignoreNull()Returns true if this aggregator must ignore null values.voidreset()Reset the aggregator (clear the list of values)voidsetIgnoreNull(boolean ignoreNull)Change the way this aggregator process null values.voidsetParameter(String name, Object value)Set a parameter value for this aggregator.StringtoString()
-
-
-
Method Detail
-
clone
public Aggregators.IntMedian clone()
Description copied from interface:AggregatorCreate a new Aggregator with the same attributes as this one.- Specified by:
clonein interfaceAggregator<Integer>
-
getResult
public Integer getResult()
- Specified by:
getResultin interfaceAggregator<Integer>- Returns:
- the aggregated value.
-
getParameters
public Set<String> getParameters()
Description copied from interface:AggregatorReturn parameter names used by this aggregator- Specified by:
getParametersin interfaceAggregator<T>- Returns:
- the set of parameters
-
setParameter
public void setParameter(String name, Object value)
Description copied from interface:AggregatorSet a parameter value for this aggregator.- Specified by:
setParameterin 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:AggregatorReturns parameter value for name parameter.- Specified by:
getParameterin interfaceAggregator<T>- Parameters:
name- the name of the parameter
-
getName
public String getName()
Description copied from interface:AggregatorReturns the name of this Aggregator.- Specified by:
getNamein interfaceAggregator<T>
-
ignoreNull
public boolean ignoreNull()
Description copied from interface:AggregatorReturns true if this aggregator must ignore null values.- Specified by:
ignoreNullin interfaceAggregator<T>
-
setIgnoreNull
public void setIgnoreNull(boolean ignoreNull)
Description copied from interface:AggregatorChange the way this aggregator process null values.- Specified by:
setIgnoreNullin interfaceAggregator<T>
-
addValue
public void addValue(T object)
Description copied from interface:AggregatorAdds a new value to the aggregator.- Specified by:
addValuein interfaceAggregator<T>- Parameters:
object- value to be added
-
getValues
public List<T> getValues()
- Specified by:
getValuesin interfaceAggregator<T>- Returns:
- the values accumulated by this aggregator.
-
getOutputAttributeType
public AttributeType getOutputAttributeType()
- Specified by:
getOutputAttributeTypein interfaceAggregator<T>- Returns:
- the AttributeType of the aggregated value.
-
reset
public void reset()
Description copied from interface:AggregatorReset the aggregator (clear the list of values)- Specified by:
resetin interfaceAggregator<T>
-
-