Class Aggregators.Collect
java.lang.Object
org.openjump.core.ui.plugin.tools.aggregate.Aggregators.Collect
- All Implemented Interfaces:
Aggregator<org.locationtech.jts.geom.Geometry>
- Enclosing class:
Aggregators
-
Field Summary
Fields inherited from interface Aggregator
SEPARATOR_NAME -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddValue(org.locationtech.jts.geom.Geometry object) Adds a new value to the aggregator.clone()Create a new Aggregator with the same attributes as this one.getName()Returns the name of this Aggregator.getParameter(String name) Returns parameter value for name parameter.Return parameter names used by this aggregatororg.locationtech.jts.geom.GeometryList<org.locationtech.jts.geom.Geometry> booleanReturns 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.toString()
-
Constructor Details
-
Collect
public Collect()
-
-
Method Details
-
clone
Description copied from interface:AggregatorCreate a new Aggregator with the same attributes as this one.- Specified by:
clonein interfaceAggregator<org.locationtech.jts.geom.Geometry>
-
getResult
public org.locationtech.jts.geom.Geometry getResult()- Specified by:
getResultin interfaceAggregator<org.locationtech.jts.geom.Geometry>- Returns:
- the aggregated value.
-
getParameters
Description copied from interface:AggregatorReturn parameter names used by this aggregator- Specified by:
getParametersin interfaceAggregator<T>- Returns:
- the set of parameters
-
setParameter
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
Description copied from interface:AggregatorReturns parameter value for name parameter.- Specified by:
getParameterin interfaceAggregator<T>- Parameters:
name- the name of the parameter
-
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(org.locationtech.jts.geom.Geometry object) Description copied from interface:AggregatorAdds a new value to the aggregator.- Specified by:
addValuein interfaceAggregator<T>- Parameters:
object- value to be added
-
getValues
- Specified by:
getValuesin interfaceAggregator<T>- Returns:
- the values accumulated by this aggregator.
-
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>
-
toString
-