public class IntegerData extends Object implements IAnswerData
| Constructor and Description |
|---|
IntegerData()
Empty Constructor, necessary for dynamic construction during deserialization.
|
IntegerData(int n) |
IntegerData(Integer n) |
| Modifier and Type | Method and Description |
|---|---|
IntegerData |
cast(UncastData data)
Casts the provided data into this data type.
|
IAnswerData |
clone() |
boolean |
equals(Object o) |
String |
getDisplayText() |
Object |
getValue() |
int |
hashCode() |
void |
readExternal(DataInputStream in,
PrototypeFactory pf) |
void |
setValue(Object o) |
String |
toString() |
UncastData |
uncast()
Data types can be uncast if they are expected to be used
in different contexts.
|
void |
writeExternal(DataOutputStream out) |
finalize, getClass, notify, notifyAll, wait, wait, waitwrapDatapublic IntegerData()
public IntegerData(int n)
public IntegerData(Integer n)
public IAnswerData clone()
clone in interface IAnswerDataclone in class Objectpublic String getDisplayText()
getDisplayText in interface IAnswerDatapublic Object getValue()
getValue in interface IAnswerDatapublic void setValue(Object o)
setValue in interface IAnswerDatao - the value of this answerdata object. Cannot be null.
Null Data will not overwrite existing values.public 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 IntegerData 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 © 2021. All rights reserved.