public final class ImmutableDate
extends java.util.Date
Date
class.
Throws UnsupportedOperationException
when mutable methods are
invoked.Date
,
Immutable Date,
Serialized FormConstructor 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.Date
public void setDate(int arg0)
setDate
in class java.util.Date
public void setHours(int arg0)
setHours
in class java.util.Date
public void setMinutes(int arg0)
setMinutes
in class java.util.Date
public void setMonth(int arg0)
setMonth
in class java.util.Date
public void setSeconds(int arg0)
setSeconds
in class java.util.Date
public void setTime(long arg0)
setTime
in class java.util.Date
public void setYear(int arg0)
setYear
in class java.util.Date
Copyright © 2005-2020 Restlet.