|
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.Element
com.jivesoftware.base.stats.element.LongElement
public class LongElement
An implementation of Element that wraps a Long.
| Constructor Summary | |
|---|---|
LongElement(long n)
Generates a new LongElement given an initial long value |
|
LongElement(java.lang.Long n)
Generates a new LongElement given an initial Long value. |
|
| Method Summary | |
|---|---|
int |
compareTo(java.lang.Object o)
Compares the value of the given object to the value stored in this object. |
boolean |
equals(java.lang.Object o)
Returns true if the given object is also a LongElement object and their values are equal, false otherwise. |
Element |
getInstance(long n)
Retuns an instance of this class with the given long as its value. |
java.lang.Object |
getValue()
Get the embedded Long |
int |
hashCode()
Generates a hashCode using the Long's hashcode so we can use LongElements with hash tables. |
protected void |
setLongElement(java.lang.Long longElement)
Sets the long element value. |
java.lang.Long |
toLong()
Returns this element's value as a long primitive. |
java.lang.String |
toString()
Returns a String representation of this Element. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public LongElement(long n)
n - the long value we're wrappingpublic LongElement(java.lang.Long n)
| Method Detail |
|---|
public java.lang.Object getValue()
getValue in class Elementprotected void setLongElement(java.lang.Long longElement)
longElement - the new value for this element.public java.lang.Long toLong()
toLong in class Elementpublic Element getInstance(long n)
getInstance in class Elementn - a long this element should wrap.
public java.lang.String toString()
toString in class Elementpublic int compareTo(java.lang.Object o)
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode 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 | |||||||||