public class TimeData extends Object implements IAnswerData
| Constructor and Description |
|---|
TimeData()
Empty Constructor, necessary for dynamic construction during deserialization.
|
TimeData(@NotNull Date d) |
| Modifier and Type | Method and Description |
|---|---|
TimeData |
cast(UncastData data)
Casts the provided data into this data type.
|
IAnswerData |
clone() |
String |
getDisplayText() |
@NotNull Object |
getValue() |
void |
readExternal(DataInputStream in,
PrototypeFactory pf) |
void |
setValue(@NotNull Object o) |
UncastData |
uncast()
Data types can be uncast if they are expected to be used
in different contexts.
|
void |
writeExternal(DataOutputStream out) |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitwrapDatapublic TimeData()
public TimeData(@NotNull
@NotNull Date d)
public IAnswerData clone()
clone in interface IAnswerDataclone in class Objectpublic void setValue(@NotNull
@NotNull Object o)
setValue in interface IAnswerDatao - the value of this answerdata object. Cannot be null.
Null Data will not overwrite existing values.@NotNull public @NotNull Object getValue()
getValue in interface IAnswerDatapublic String getDisplayText()
getDisplayText in interface IAnswerDatapublic void readExternal(DataInputStream in, PrototypeFactory pf) throws IOException
readExternal in interface ExternalizableIOExceptionpublic void writeExternal(DataOutputStream out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic UncastData uncast()
IAnswerDatauncast in interface IAnswerDatapublic TimeData cast(UncastData data) throws IllegalArgumentException
IAnswerDatacast in interface IAnswerDatadata - An uncast data value which is compatible
with this data typeIllegalArgumentException - If the uncast data is
not in a compatible formatCopyright © 2025. All rights reserved.