Package com.yahoo.data.access.simple
Class Value.ObjectValue
java.lang.Object
com.yahoo.data.access.simple.Value
com.yahoo.data.access.simple.Value.ObjectValue
- 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 TypeMethodDescriptionAccess an field in an object.int
Get the number of fields in an OBJECT (always returns 0 for non-objects)fields()
Convert an object to an iterable list of (name, value) pairs.void
Traverse an object value, performing callbacks for each field.type()
Get the type of an inspectorboolean
valid()
Check if the inspector is valid.
-
Constructor Details
-
ObjectValue
public ObjectValue()
-
-
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. -
type
Description copied from interface:Inspector
Get the type of an inspector -
fieldCount
public int fieldCount()Description copied from interface:Inspector
Get the number of fields in an OBJECT (always returns 0 for non-objects)- Specified by:
fieldCount
in interfaceInspector
- Overrides:
fieldCount
in classValue
-
field
Description copied from interface:Inspector
Access an field in an object. If the current Inspector doesn't connect to an object value, or the object value does not contain a field with the given symbol name, the returned Inspector will be invalid. -
traverse
Description copied from interface:Inspector
Traverse an object value, performing callbacks for each field. If the current Inspector is connected to an object value, perform callbacks to the given traverser for each field contained in the object. Otherwise a no-op. -
fields
Description copied from interface:Inspector
Convert an object to an iterable list of (name, value) pairs. Other types will just return an empty list. -
put
-
put
-
put
-
put
-
put
-