public class WZDataItem extends WZData implements Serializable
| Constructor and Description |
|---|
WZDataItem()
Constructs a null instance
|
WZDataItem(boolean value)
Construct a new boolean-based instance with the specified value
|
WZDataItem(Date value)
Construct a new date-based instance with the specified value
|
WZDataItem(double value)
Construct a new double-based instance with the specified value
|
WZDataItem(float value)
Construct a new float-based instance with the specified value
|
WZDataItem(int value)
Construct a new integer-based instance with the specified value
|
WZDataItem(long value)
Construct a new long-based instance with the specified value
|
WZDataItem(short value)
Construct a new short-based instance with the specified value
|
WZDataItem(String value)
Construct a new string-based instance with the specified value
|
WZDataItem(WZDataItem other)
Construct a new instance using the property values from the specified instance
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
booleanValue()
Returns the data value of this instance.
|
Date |
dateValue()
Returns the data value of this instance.
|
double |
doubleValue()
Returns the data value of this instance.
|
float |
floatValue()
Returns the data value of this instance.
|
int |
intValue()
Returns the data value of this instance.
|
boolean |
isNull()
Returns true if the value of this data item is null
|
long |
longValue()
Returns the data value of this instance.
|
void |
set(WZDataItem other)
Update the property values of this instance with the property values from the specified instance
|
void |
setValue(boolean value)
Updates the data value of this instance.
|
void |
setValue(Date value)
Updates the data value of this instance.
|
void |
setValue(double value)
Updates the data value of this instance.
|
void |
setValue(float value)
Updates the data value of this instance.
|
void |
setValue(int value)
Updates the data value of this instance.
|
void |
setValue(long value)
Updates the data value of this instance.
|
void |
setValue(short value)
Updates the data value of this instance.
|
void |
setValue(String value)
Updates the data value of this instance.
|
short |
shortValue()
Returns the data value of this instance.
|
String |
stringValue()
Returns the data value of this instance.
|
String |
toString()
Returns a human-readable version of the data value
|
getDataType, isPrimitive, toStringpublic WZDataItem()
public WZDataItem(WZDataItem other)
other - The instance with the property values to replicatepublic WZDataItem(int value)
value - the initial valuepublic WZDataItem(short value)
value - the initial valuepublic WZDataItem(long value)
value - the initial valuepublic WZDataItem(float value)
value - the initial valuepublic WZDataItem(double value)
value - the initial valuepublic WZDataItem(String value)
value - the initial valuepublic WZDataItem(boolean value)
value - the initial valuepublic WZDataItem(Date value)
value - the initial valuepublic void set(WZDataItem other)
other - The instance with the property values to replicatepublic void setValue(int value)
value - the updated data valueRuntimeException - if the data type of this instance is not WZDataType.INTEGERpublic void setValue(short value)
value - the updated data valueRuntimeException - if the data type of this instance is not WZDataType.SHORTpublic void setValue(long value)
value - the updated data valueRuntimeException - if the data type of this instance is not WZDataType.LONGpublic void setValue(float value)
value - the updated data valueRuntimeException - if the data type of this instance is not WZDataType.FLOATpublic void setValue(double value)
value - the updated data valueRuntimeException - if the data type of this instance is not WZDataType.DOUBLEpublic void setValue(String value)
value - the updated data valueRuntimeException - if the data type of this instance is not WZDataType.STRINGpublic void setValue(boolean value)
value - the updated data valueRuntimeException - if the data type of this instance is not WZDataType.BOOLEANpublic void setValue(Date value)
value - the updated data valueRuntimeException - if the data type of this instance is not WZDataType.DATEpublic int intValue()
RuntimeException - if the data type of this instance is not WZDataType.INTEGERpublic long longValue()
RuntimeException - if the data type of this instance is not WZDataType.LONGpublic short shortValue()
RuntimeException - if the data type of this instance is not WZDataType.SHORTpublic float floatValue()
RuntimeException - if the data type of this instance is not WZDataType.FLOATpublic double doubleValue()
RuntimeException - if the data type of this instance is not WZDataType.DOUBLEpublic String stringValue()
RuntimeException - if the data type of this instance is not WZDataType.STRINGpublic Date dateValue()
RuntimeException - if the data type of this instance is not WZDataType.DATEpublic boolean booleanValue()
RuntimeException - if the data type of this instance is not WZDataType.BOOLEANpublic String toString()
public boolean isNull()
© 2016 Wowza Media Systems, LLC. All rights reserved. Terms | Privacy | Trademarks | Legal