org.openpermis.policy
Class TimeStamp

java.lang.Object
  extended by org.openpermis.policy.TimeStamp

public class TimeStamp
extends Object

A read-only point in time.

Since:
0.1.0

Field Summary
private  Date date
           
private  TimeZone timeZone
           
 
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
 

Field Detail

date

private final Date date
Since:
0.1.0

timeZone

private final TimeZone timeZone
Since:
0.1.0
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


PERMIS Role Based Access Control 0.4.0 (Build 15)
2009/05/20 08:14:59
Copyright (c) 2002-2007 Ergon Informatik AG