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 intclassify(Object value)Returns the slot this value belongs in.intgetSize()SetgetValues(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:
getSizein 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:ClassifierReturns the slot this value belongs in.- Specified by:
classifyin classClassifier- Returns:
- index, starting from zero
-
-