T
- The type of Type
that this HistogramBinFactory pertains
to.public interface HistogramBinFactory<T extends Type<T>>
Histogram
to generate
HistogramBin
s and HistogramKey
s. In addition, a
HistogramBinFactory implements a method used to determine if two Type's are
equivalent to each other, much as in .equals().Modifier and Type | Method and Description |
---|---|
HistogramBin<T> |
createBin(T type)
Create a
HistogramBin corresponding to the give Type ,
in the sense that for the purposes of the Histogram class,
the given Type would be binned into the returned HistogramBin. |
HistogramKey<T> |
createKey(T type)
|
boolean |
equivalent(T type1,
T type2)
Determines whether two
Type s are equivalent in the sense that
they would be binned into the same HistogramBin. |
HistogramKey<T> createKey(T type)
type
- the Type
to which the generated HistogramKey will
correspond.boolean equivalent(T type1, T type2)
Type
s are equivalent in the sense that
they would be binned into the same HistogramBin.type1
- the first Type for comparisontype2
- the second Type for comparisonHistogramBin<T> createBin(T type)
HistogramBin
corresponding to the give Type
,
in the sense that for the purposes of the Histogram
class,
the given Type would be binned into the returned HistogramBin.type
- the prototype Type used to create the HistogramBinCopyright © 2015–2021 Fiji. All rights reserved.