|
||||||||||
| 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 Form| Constructor 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 immutable| Method Detail |
|---|
public Object clone()
clone in class Datepublic void setDate(int arg0)
setDate in class Datepublic void setHours(int arg0)
setHours in class Datepublic void setMinutes(int arg0)
setMinutes in class Datepublic void setMonth(int arg0)
setMonth in class Datepublic void setSeconds(int arg0)
setSeconds in class Datepublic void setTime(long arg0)
setTime in class Datepublic void setYear(int arg0)
setYear in class Date
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||