Package org.geotools.filter.function
Class ExplicitClassifier
- Object
-
- Classifier
-
- ExplicitClassifier
-
public final class ExplicitClassifier extends Classifier
Explicit classification for a set of values.- Author:
- jody
-
-
Constructor Summary
Constructors Constructor Description ExplicitClassifier(Set... values)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
classify(Object value)
Returns the slot this value belongs in.int
getSize()
Set
getValues(int index)
Returns all the unique values for a particular slot.-
Methods inherited from class Classifier
classify, getPercentages, getTitle, getTitles, setPercentages, setTitle, setTitles
-
-
-
-
Constructor Detail
-
ExplicitClassifier
public ExplicitClassifier(Set... values)
-
-
Method Detail
-
getSize
public int getSize()
- Specified by:
getSize
in classClassifier
- Returns:
- the number of bins
-
getValues
public Set getValues(int index)
Returns all the unique values for a particular slot.- Returns:
- all applicable values for a slot
-
classify
public int classify(Object value)
Description copied from class:Classifier
Returns the slot this value belongs in.- Specified by:
classify
in classClassifier
- Returns:
- index, starting from zero
-
-