org.dxc.api.datatypes
Class Value
Object
org.dxc.api.datatypes.Value
- Direct Known Subclasses:
- BoolValue, IntegerValue, RealValue, StringValue
public abstract class Value
- extends Object
Abstract class for values that can be of various concrete datatypes.
Value is the superclass of all the basic datatypes that can be referred to by
DxcData, such as boolean, integer, real, or string. The abstraction is
provided so that data of various kinds can be supplied in a uniform way, eg.
for sensor values and command values.
Constructor Summary |
Value()
|
Method Summary |
abstract OutputStream |
put(OutputStream out)
Print the value to an output stream. |
String |
toString()
|
static Value |
v(boolean b)
|
static Value |
v(double d)
|
static Value |
v(int n)
|
static Value |
v(String s)
|
Methods inherited from class Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Value
public Value()
put
public abstract OutputStream put(OutputStream out)
- Print the value to an output stream.
toString
public String toString()
- Overrides:
toString
in class Object
v
public static Value v(String s)
v
public static Value v(int n)
v
public static Value v(double d)
v
public static Value v(boolean b)