Package com.yahoo.data.access.simple
Class Value.EmptyValue
java.lang.Object
com.yahoo.data.access.simple.Value
com.yahoo.data.access.simple.Value.EmptyValue
- All Implemented Interfaces:
Inspectable
,Inspector
- Enclosing class:
- Value
-
Nested Class Summary
Nested classes/interfaces inherited from class com.yahoo.data.access.simple.Value
Value.ArrayValue, Value.BoolValue, Value.DataValue, Value.DoubleValue, Value.EmptyValue, Value.LongValue, Value.ObjectValue, Value.StringValue
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
asBool()
Access the inspector's value if it's a BOOLEAN; otherwise throws exceptionbyte[]
asData()
Access the inspector's value if it's DATA; otherwise throws exceptiondouble
asDouble()
Access the inspector's value if it's a DOUBLE (or LONG); otherwise throws exceptionlong
asLong()
Access the inspector's value if it's a LONG (or DOUBLE); otherwise throws exceptionasString()
Access the inspector's value if it's a STRING; otherwise throws exceptionbyte[]
asUtf8()
Access the inspector's value (in utf-8 representation) if it's a STRING; otherwise throws exceptionboolean
valid()
Check if the inspector is valid.
-
Constructor Details
-
EmptyValue
public EmptyValue()
-
-
Method Details
-
valid
public boolean valid()Description copied from interface:Inspector
Check if the inspector is valid. If you try to access a field or array entry that does not exist, you will get an invalid Inspector returned. -
asBool
public boolean asBool()Description copied from interface:Inspector
Access the inspector's value if it's a BOOLEAN; otherwise throws exception -
asLong
public long asLong()Description copied from interface:Inspector
Access the inspector's value if it's a LONG (or DOUBLE); otherwise throws exception -
asDouble
public double asDouble()Description copied from interface:Inspector
Access the inspector's value if it's a DOUBLE (or LONG); otherwise throws exception -
asString
Description copied from interface:Inspector
Access the inspector's value if it's a STRING; otherwise throws exception -
asUtf8
public byte[] asUtf8()Description copied from interface:Inspector
Access the inspector's value (in utf-8 representation) if it's a STRING; otherwise throws exception -
asData
public byte[] asData()Description copied from interface:Inspector
Access the inspector's value if it's DATA; otherwise throws exception
-