ValueType
- Value type to be binned.BinnedType
- Type that values are binned as.@CodeReview(reviewer="Justin Basilico", date="2009-05-29", changesNeeded=false, comments="Changed the interface slightly. Cleaned up the javadoc.") public interface Binner<ValueType,BinnedType>
Modifier and Type | Method and Description |
---|---|
BinnedType |
findBin(ValueType value)
Finds the bin for the provided value, or null if a corresponding bin
for the value does not exist.
|
int |
getBinCount()
Gets the total number of bins.
|
java.util.Set<BinnedType> |
getBinSet()
Gets the set of bins that the binner is using.
|
BinnedType findBin(ValueType value)
value
- The value to get the bin for.int getBinCount()
java.util.Set<BinnedType> getBinSet()