|
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
com.jivesoftware.base.stats.bin.SingleElementBin
public class SingleElementBin
SingleElementBin is a Bin that contains a single element. Most of the Bin functions are passed through to the element.
Constructor Summary | |
---|---|
SingleElementBin(Element element)
Creates new SingleElementBin that wraps the given element |
Method Summary | |
---|---|
int |
compareTo(java.lang.Object o)
Compare this bin to the given object (assumed to be another bin). |
boolean |
contains(Bin b)
See if this bin contains the given bin. |
boolean |
contains(Element e)
See if this bin contains the given element. |
boolean |
containsBegin()
A SingleElementBin behaves like a ClosedInterval with begin = end. |
boolean |
containsEnd()
A SingleElementBin behaves like a ClosedInterval with begin = end. |
boolean |
equals(java.lang.Object o)
Test whether this bin equals the given object |
Element |
getBegin()
Get the first element in this bin (the embedded element) |
Element |
getEnd()
Get the last element in this bin (the embedded element) |
int |
hashCode()
Return a suitable hashcode so that this bin can be used in a HashMap |
java.lang.String |
toString()
Convert the Bin to a string using the element's toString() method. |
Methods inherited from class com.jivesoftware.base.stats.Bin |
---|
getProperty, setProperty |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SingleElementBin(Element element)
Method Detail |
---|
public java.lang.String toString()
toString
in class Bin
Object.toString()
public boolean contains(Bin b)
contains
in class Bin
b
- the Bin to compare this object with.
public boolean contains(Element e)
contains
in class Bin
public int compareTo(java.lang.Object o)
compareTo
in interface java.lang.Comparable
compareTo
in class Bin
Comparable.compareTo(java.lang.Object)
public Element getBegin()
getBegin
in class Bin
public boolean containsBegin()
containsBegin
in class Bin
public Element getEnd()
getEnd
in class Bin
public boolean containsEnd()
containsEnd
in class Bin
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
|
Jive Forums Project Page | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |