|
Jive Forums API (5.5.8) 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 BinObject.toString()public boolean contains(Bin b)
contains in class Binb - the Bin to compare this object with.
public boolean contains(Element e)
contains in class Binpublic int compareTo(java.lang.Object o)
compareTo in interface java.lang.ComparablecompareTo in class BinComparable.compareTo(java.lang.Object)public Element getBegin()
getBegin in class Binpublic boolean containsBegin()
containsBegin in class Binpublic Element getEnd()
getEnd in class Binpublic boolean containsEnd()
containsEnd in class Binpublic int hashCode()
hashCode in class java.lang.Objectpublic 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 | |||||||||