public final class ImmutableDate
extends java.util.Date
Date class.
Throws UnsupportedOperationException when mutable methods are
invoked.Date,
Immutable Date,
Serialized Form| Constructor and Description |
|---|
ImmutableDate(java.util.Date date)
Private constructor.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.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.
|
public ImmutableDate(java.util.Date date)
date - date to be made immutablepublic java.lang.Object clone()
clone in class java.util.Datepublic void setDate(int arg0)
setDate in class java.util.Datepublic void setHours(int arg0)
setHours in class java.util.Datepublic void setMinutes(int arg0)
setMinutes in class java.util.Datepublic void setMonth(int arg0)
setMonth in class java.util.Datepublic void setSeconds(int arg0)
setSeconds in class java.util.Datepublic void setTime(long arg0)
setTime in class java.util.Datepublic void setYear(int arg0)
setYear in class java.util.DateCopyright © 2005-2018 Restlet.