public final class ImmutableDate extends Date
Date
class.
Throws UnsupportedOperationException
when mutable methods are
invoked.Date
,
Immutable Date,
Serialized FormConstructor and Description |
---|
ImmutableDate(Date date)
Private constructor.
|
Modifier and Type | Method and Description |
---|---|
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.
|
after, before, compareTo, equals, getDate, getDay, getHours, getMinutes, getMonth, getSeconds, getTime, getTimezoneOffset, getYear, hashCode, parse, toGMTString, toLocaleString, toString, UTC
public ImmutableDate(Date date)
date
- date to be made immutablepublic void setDate(int arg0)
public void setHours(int arg0)
public void setMinutes(int arg0)
setMinutes
in class Date
public void setMonth(int arg0)
public void setSeconds(int arg0)
setSeconds
in class Date
public void setTime(long arg0)
Copyright © 2005–2013. All rights reserved.