org.openpermis.policy
Class TimeStamp

java.lang.Object
  extended by org.openpermis.policy.TimeStamp
All Implemented Interfaces:
Serializable

public class TimeStamp
extends Object
implements Serializable

A read-only point in time.

See Also:
Serialized Form
Since:
0.1.0

Constructor Summary
TimeStamp(Date date, TimeZone timeZone)
          Creates point in time with date and zone.
 
Method Summary
 boolean equals(Object obj)
           
static TimeStamp fromCalendar(Calendar calendar)
          Creates a time object from the current values of the specified calendar.
 Date getDate()
          Returns the date.
 TimeZone getTimeZone()
          Returns the time zone.
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TimeStamp

public TimeStamp(Date date,
                 TimeZone timeZone)
Creates point in time with date and zone.

Parameters:
date - a Date.
timeZone - a TimeZone.
Since:
0.1.0
Method Detail

fromCalendar

public static TimeStamp fromCalendar(Calendar calendar)
Creates a time object from the current values of the specified calendar.

Parameters:
calendar - a Calendar object.
Returns:
a TimeStamp whose date and time zone correspond to that of the specified calendar.
Since:
0.1.0

getDate

public Date getDate()
Returns the date.

Returns:
the date.
Since:
0.1.0

getTimeZone

public TimeZone getTimeZone()
Returns the time zone.

Returns:
the time zone.
Since:
0.1.0

equals

public boolean equals(Object obj)
Overrides:
equals in class Object
Since:
0.3.0

hashCode

public int hashCode()
Overrides:
hashCode in class Object
Since:
0.3.0

toString

public String toString()
Overrides:
toString in class Object
Since:
0.3.0


OpenPermis Role Based Access Control 0.9.0 (Build 16)
2009/08/13 07:16:59
Copyright (c) 2002-2007 Ergon Informatik AG