| Constructor and Description |
|---|
HistogramKey(int hc,
T t,
HistogramBinFactory<T> factory)
Create a HistogramKey with hash code hc, representative t, and
HistogramBinFactory factory.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o)
Determines whether this HistogramKey is equal to the given Object.
|
T |
getType() |
int |
hashCode() |
public HistogramKey(int hc,
T t,
HistogramBinFactory<T> factory)
hc - the hash code to be returned by this HistogramKey's hashCode().t - the representative Type. Preferably, this should be
the center Type of the HistogramBin to be keyed, but it only need be one
that would be binned into that bin.factory - the HistogramBinFactory corresponding to this key.
Typically, this should be the HistogramBinFactory that generated this
key.Object.hashCode()public boolean equals(Object o)
o iff o is also a
HistogramKey, and HistogramBinFactory.equivalent(Type, Type)
returns true when called with this HistogramKey's representative type
and the one corresponding to o.public T getType()
Copyright © 2015–2021 Fiji. All rights reserved.