org.geotools.filter.function
Class ExplicitClassifier

Object
  extended by Classifier
      extended by ExplicitClassifier

public final class ExplicitClassifier
extends Classifier

Explicit classification for a set of values.

Author:
jody

Constructor Summary
ExplicitClassifier(Set[] values)
           
 
Method Summary
 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, getTitle, getTitles, setTitle, setTitles, toString
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ExplicitClassifier

public ExplicitClassifier(Set[] values)
Method Detail

getSize

public int getSize()
Specified by:
getSize in class Classifier
Returns:
the number of bins

getValues

public Set getValues(int index)
Returns all the unique values for a particular slot.

Parameters:
index -
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 class Classifier
Returns:
index, starting from zero


Copyright © 1996-2014 Geotools. All Rights Reserved.