Class Aggregators.DoubleMedian

java.lang.Object
org.openjump.core.ui.plugin.tools.aggregate.Aggregators.DoubleMedian
All Implemented Interfaces:
Aggregator<Double>
Enclosing class:
Aggregators

public static class Aggregators.DoubleMedian extends Object
  • Constructor Details

    • DoubleMedian

      public DoubleMedian()
  • Method Details

    • clone

      public Aggregators.DoubleMedian clone()
      Description copied from interface: Aggregator
      Create a new Aggregator with the same attributes as this one.
      Specified by:
      clone in interface Aggregator<Double>
    • getResult

      public Double getResult()
      Specified by:
      getResult in interface Aggregator<Double>
      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 interface Aggregator<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 interface Aggregator<T>
      Parameters:
      name - the name of the aggregator
      value - 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 interface Aggregator<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 interface Aggregator<T>
    • ignoreNull

      public boolean ignoreNull()
      Description copied from interface: Aggregator
      Returns true if this aggregator must ignore null values.
      Specified by:
      ignoreNull in interface Aggregator<T>
    • setIgnoreNull

      public void setIgnoreNull(boolean ignoreNull)
      Description copied from interface: Aggregator
      Change the way this aggregator process null values.
      Specified by:
      setIgnoreNull in interface Aggregator<T>
    • addValue

      public void addValue(Double object)
      Description copied from interface: Aggregator
      Adds a new value to the aggregator.
      Specified by:
      addValue in interface Aggregator<T>
      Parameters:
      object - value to be added
    • getValues

      public List<Double> getValues()
      Specified by:
      getValues in interface Aggregator<T>
      Returns:
      the values accumulated by this aggregator.
    • getOutputAttributeType

      public AttributeType getOutputAttributeType()
      Specified by:
      getOutputAttributeType in interface Aggregator<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 interface Aggregator<T>
    • toString

      public String toString()
      Overrides:
      toString in class Object