|
Jive Forums API (5.5.20.2-oracle) Developer Javadocs | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jivesoftware.base.stats.Bin
public abstract class Bin
A Bin represents a collection of Elements in a Histogram. Bins typically represent either an interval or a single element. When generating a Histogram for a set of data, elements are first extracted from the data. Next the elements are assigned to Bins by a BinSequence object. The Histogram maintains a count for each Bin.
Constructor Summary | |
---|---|
Bin()
|
Method Summary | |
---|---|
abstract int |
compareTo(java.lang.Object o)
Compares this Bin to the given object (assumed to be another Bin). |
abstract boolean |
contains(Bin bin)
Returns true if this Bin contains the given Bin. |
abstract boolean |
contains(Element e)
See if this Bin contains the given Element. |
abstract boolean |
containsBegin()
See if this Bin contains the beginning point. |
abstract boolean |
containsEnd()
See if this Bin contains the end point. |
abstract Element |
getBegin()
Get the first element in this Bin |
abstract Element |
getEnd()
Get the last element in this Bin |
java.lang.Object |
getProperty(java.lang.Object name)
Returns a property associated with this bin. |
void |
setProperty(java.lang.Object name,
java.lang.Object value)
Sets a property of this Bin. |
abstract java.lang.String |
toString()
Convert this Bin to a String. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Bin()
Method Detail |
---|
public abstract int compareTo(java.lang.Object o)
compareTo
in interface java.lang.Comparable
Comparable.compareTo(java.lang.Object)
public abstract java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public abstract boolean contains(Bin bin)
bin
- the Bin to compare this object with.
public abstract boolean contains(Element e)
public abstract Element getBegin()
public abstract boolean containsBegin()
public abstract Element getEnd()
public abstract boolean containsEnd()
public java.lang.Object getProperty(java.lang.Object name)
name
- the name of the property.
public void setProperty(java.lang.Object name, java.lang.Object value)
name
- the name of the property.value
- the value of the property.
|
Jive Forums Project Page | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |