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, toString
public 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.INTEGER
public void setValue(short value)
value
- the updated data valueRuntimeException
- if the data type of this instance is not WZDataType.SHORT
public void setValue(long value)
value
- the updated data valueRuntimeException
- if the data type of this instance is not WZDataType.LONG
public void setValue(float value)
value
- the updated data valueRuntimeException
- if the data type of this instance is not WZDataType.FLOAT
public void setValue(double value)
value
- the updated data valueRuntimeException
- if the data type of this instance is not WZDataType.DOUBLE
public void setValue(String value)
value
- the updated data valueRuntimeException
- if the data type of this instance is not WZDataType.STRING
public void setValue(boolean value)
value
- the updated data valueRuntimeException
- if the data type of this instance is not WZDataType.BOOLEAN
public void setValue(Date value)
value
- the updated data valueRuntimeException
- if the data type of this instance is not WZDataType.DATE
public int intValue()
RuntimeException
- if the data type of this instance is not WZDataType.INTEGER
public long longValue()
RuntimeException
- if the data type of this instance is not WZDataType.LONG
public short shortValue()
RuntimeException
- if the data type of this instance is not WZDataType.SHORT
public float floatValue()
RuntimeException
- if the data type of this instance is not WZDataType.FLOAT
public double doubleValue()
RuntimeException
- if the data type of this instance is not WZDataType.DOUBLE
public String stringValue()
RuntimeException
- if the data type of this instance is not WZDataType.STRING
public Date dateValue()
RuntimeException
- if the data type of this instance is not WZDataType.DATE
public boolean booleanValue()
RuntimeException
- if the data type of this instance is not WZDataType.BOOLEAN
public String toString()
public boolean isNull()
© 2016 Wowza Media Systems, LLC. All rights reserved. Terms | Privacy | Trademarks | Legal