Jive Forums API (5.5.20.2-oracle) Developer Javadocs

com.jivesoftware.util
Class DateBean

java.lang.Object
  extended by com.jivesoftware.util.DateBean

public class DateBean
extends java.lang.Object

Simple bean that holds the value of the current time.


Constructor Summary
DateBean()
          Initializes the internal date to the current time.
DateBean(java.util.Date date)
          Initializes the internal date to the passed in date.
 
Method Summary
 java.util.Date getDate()
          Returns the date.
 java.util.Date getNow()
          Returns the current date.
 void setDate(java.util.Date date)
          Sets the internal date.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DateBean

public DateBean()
Initializes the internal date to the current time.


DateBean

public DateBean(java.util.Date date)
Initializes the internal date to the passed in date.

Parameters:
date -
Method Detail

getDate

public java.util.Date getDate()
Returns the date.

Returns:
the date.

setDate

public void setDate(java.util.Date date)
Sets the internal date.

Parameters:
date - the value to set the internal date to.

getNow

public java.util.Date getNow()
Returns the current date. Note the current date is only calculated once for the lifetime of the bean.

Returns:
the current date.

Jive Forums Project Page

Copyright © 1999-2006 Jive Software.