public final class ImmutableDate extends Date
Date class.
Throws UnsupportedOperationException when mutable methods are
invoked.Date,
Serialized Form| Constructor 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, from, getDate, getDay, getHours, getMinutes, getMonth, getSeconds, getTime, getTimezoneOffset, getYear, hashCode, parse, toGMTString, toInstant, toLocaleString, toString, UTCpublic 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 Datepublic void setMonth(int arg0)
public void setSeconds(int arg0)
setSeconds in class Datepublic void setTime(long arg0)
Copyright © 2005–2025. All rights reserved.