|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.Date
org.restlet.engine.util.ImmutableDate
public final class ImmutableDate
Class acting as an immutable date class based on the Date
class.
Throws UnsupportedOperationException
when mutable methods are
invoked.
Date
,
Immutable Date,
Serialized FormConstructor Summary | |
---|---|
ImmutableDate(Date date)
Private constructor. |
Method Summary | |
---|---|
Object |
clone()
|
void |
setDate(int arg0)
As an ImmutableDate is immutable, this method throws an UnsupportedOperationException exception. |
void |
setHours(int arg0)
As an ImmutableDate is immutable, this method throws an UnsupportedOperationException exception. |
void |
setMinutes(int arg0)
As an ImmutableDate is immutable, this method throws an UnsupportedOperationException exception. |
void |
setMonth(int arg0)
As an ImmutableDate is immutable, this method throws an UnsupportedOperationException exception. |
void |
setSeconds(int arg0)
As an ImmutableDate is immutable, this method throws an UnsupportedOperationException exception. |
void |
setTime(long arg0)
As an ImmutableDate is immutable, this method throws an UnsupportedOperationException exception. |
void |
setYear(int arg0)
As an ImmutableDate is immutable, this method throws an UnsupportedOperationException exception. |
Methods inherited from class java.util.Date |
---|
after, before, compareTo, equals, getDate, getDay, getHours, getMinutes, getMonth, getSeconds, getTime, getTimezoneOffset, getYear, hashCode, parse, toGMTString, toLocaleString, toString, UTC |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ImmutableDate(Date date)
date
- date to be made immutableMethod Detail |
---|
public Object clone()
clone
in class Date
public void setDate(int arg0)
setDate
in class Date
public void setHours(int arg0)
setHours
in class Date
public void setMinutes(int arg0)
setMinutes
in class Date
public void setMonth(int arg0)
setMonth
in class Date
public void setSeconds(int arg0)
setSeconds
in class Date
public void setTime(long arg0)
setTime
in class Date
public void setYear(int arg0)
setYear
in class Date
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |