- java.lang.Object
-
- java.util.Date
-
- com.aoapps.lang.util.UnmodifiableDate
-
- All Implemented Interfaces:
Serializable,Cloneable,Comparable<Date>
public final class UnmodifiableDate extends Date implements Cloneable
An unmodifiable Date. Any mutator is overridden to throw UnsupportedOperationException.- Author:
- AO Industries, Inc.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description UnmodifiableDate()UnmodifiableDate(long date)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description UnmodifiableDateclone()Return a copy of this object.voidsetDate(int date)Deprecated.voidsetHours(int hours)Deprecated.voidsetMinutes(int minutes)Deprecated.voidsetMonth(int month)Deprecated.voidsetSeconds(int seconds)Deprecated.voidsetTime(long time)voidsetYear(int year)Deprecated.-
Methods inherited from class java.util.Date
after, before, compareTo, equals, from, getDate, getDay, getHours, getMinutes, getMonth, getSeconds, getTime, getTimezoneOffset, getYear, hashCode, parse, toGMTString, toInstant, toLocaleString, toString, UTC
-
-
-
-
Method Detail
-
clone
public UnmodifiableDate clone()
Return a copy of this object.
-
setYear
@Deprecated public void setYear(int year)
Deprecated.
-
setMonth
@Deprecated public void setMonth(int month)
Deprecated.
-
setDate
@Deprecated public void setDate(int date)
Deprecated.
-
setHours
@Deprecated public void setHours(int hours)
Deprecated.
-
setMinutes
@Deprecated public void setMinutes(int minutes)
Deprecated.- Overrides:
setMinutesin classDate
-
setSeconds
@Deprecated public void setSeconds(int seconds)
Deprecated.- Overrides:
setSecondsin classDate
-
-