public final class ImmutableDate extends java.util.Date implements SecureExternalizable
| Modifier and Type | Field and Description |
|---|---|
static ImmutableDate |
EPOCH |
static ImmutableDate |
MYTISM_EPOCH |
static long |
MYTISM_EPOCH_TIME |
| Constructor and Description |
|---|
ImmutableDate() |
ImmutableDate(long millis) |
| Modifier and Type | Method and Description |
|---|---|
static ImmutableDate |
byEpochMs(long ts) |
static java.util.Date[] |
cloneToImmutableArray(java.util.Date[] dates)
Clones the provided array and replaces all mutable dates with this immutable instances.
|
static ImmutableDate |
of(java.util.Date date) |
void |
readInstance(SecureObjectInputI s)
Reads an instance of this class from the given SecureObjectInputI without using readObject.
|
void |
ro(java.lang.String property) |
void |
setDate(int d)
Deprecated.
|
void |
setHours(int h)
Deprecated.
|
void |
setMinutes(int m)
Deprecated.
|
void |
setMonth(int m)
Deprecated.
|
void |
setSeconds(int s)
Deprecated.
|
void |
setTime(long t) |
void |
setYear(int y)
Deprecated.
|
void |
writeInstance(SecureObjectOutputI s)
Writes an instance of this class to the given SecureObjectOutputI without using writeObject.
|
public static final ImmutableDate EPOCH
public static final long MYTISM_EPOCH_TIME
public static final ImmutableDate MYTISM_EPOCH
public ImmutableDate()
public ImmutableDate(long millis)
public static ImmutableDate byEpochMs(long ts)
public static java.util.Date[] cloneToImmutableArray(java.util.Date[] dates)
public static ImmutableDate of(java.util.Date date)
date - the date for which to return an immutable date at the same epochMs for, nullable.public void ro(java.lang.String property)
public void setYear(int y)
setYear in class java.util.Datepublic void setMonth(int m)
setMonth in class java.util.Datepublic void setDate(int d)
setDate in class java.util.Datepublic void setHours(int h)
setHours in class java.util.Datepublic void setMinutes(int m)
setMinutes in class java.util.Datepublic void setSeconds(int s)
setSeconds in class java.util.Datepublic void setTime(long t)
setTime in class java.util.Datepublic void writeInstance(SecureObjectOutputI s) throws java.io.IOException
SecureExternalizablewriteInstance in interface SecureExternalizablejava.io.IOExceptionpublic void readInstance(SecureObjectInputI s) throws java.io.IOException
SecureExternalizablereadInstance in interface SecureExternalizablejava.io.IOExceptionCopyright © 2000-2025 OAshi S.à r.l. All Rights Reserved.