Interface CustomValue.CvObject
- All Superinterfaces:
CustomValue, Iterable<Map.Entry<String, CustomValue>>
- Enclosing interface:
CustomValue
public static interface CustomValue.CvObject
extends CustomValue, Iterable<Map.Entry<String, CustomValue>>
Represents an
CustomValue.CvType.OBJECT value.-
Nested Class Summary
Nested classes/interfaces inherited from interface CustomValue
CustomValue.CvArray, CustomValue.CvObject, CustomValue.CvType -
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsKey(String key) Returns whether akeyis present within this object value.Gets the value associated with akeywithin this object value.intsize()Returns the number of key-value pairs within this object value.Methods inherited from interface CustomValue
getAsArray, getAsBoolean, getAsNumber, getAsObject, getAsString, getTypeMethods inherited from interface Iterable
forEach, iterator, spliterator
-
Method Details
-
size
int size()Returns the number of key-value pairs within this object value. -
containsKey
Returns whether akeyis present within this object value.- Parameters:
key- the key to check- Returns:
- whether the key is present
-
get
Gets the value associated with akeywithin this object value.- Parameters:
key- the key to check- Returns:
- the value associated, or
nullif no such value is present
-