|
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.DateElement
public class DateElement
An Element which is specialized for handling Dates.
| Constructor Summary | |
|---|---|
DateElement(java.util.Date date)
Creates a new DateElement |
|
| Method Summary | |
|---|---|
int |
compareTo(java.lang.Object o)
Compare DateElement to another DateElement using the embedded Date's compareTo method |
boolean |
equals(java.lang.Object obj)
See if this DateElement equals another |
Element |
getInstance(long n)
Get a new DateElement instance. |
java.lang.Object |
getValue()
Returns the object this element wraps. |
int |
hashCode()
Generate a hashCode for the DateElement so we can insert DateElements into hashtables |
java.lang.Long |
toLong()
Convert the embedded Date to a Long using getTime(). |
java.lang.String |
toString()
Convert the DateElement to a String using the embedded Date's toString() method. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DateElement(java.util.Date date)
date - the initial date value.| Method Detail |
|---|
public java.lang.Object getValue()
getValue in class Elementpublic java.lang.Long toLong()
toLong in class Elementpublic Element getInstance(long n)
getInstance in class Elementn - Time in milliseconds since 1970
public java.lang.String toString()
toString in class Elementpublic int compareTo(java.lang.Object o)
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
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 | |||||||||