-
-
Method Summary
Modifier and Type Method Description abstract intsize()Returns number of key-value pairs in this array. abstract Set<Value>keySet()abstract Set<Map.Entry<Value, Value>>entrySet()abstract Collection<Value>values()abstract Map<Value, Value>map()Returns the value as {@code Map}.abstract Array<Value>getKeyValueArray()Returns the key-value pairs as an array of {@code Value}.-
Methods inherited from class com.batch.android.msgpack.value.Value
asArrayValue, asBinaryValue, asBooleanValue, asExtensionValue, asFloatValue, asIntegerValue, asMapValue, asNilValue, asNumberValue, asRawValue, asStringValue, equals, getValueType, immutableValue, isArrayValue, isBinaryValue, isBooleanValue, isExtensionValue, isFloatValue, isIntegerValue, isMapValue, isNilValue, isNumberValue, isRawValue, isStringValue, toJson, writeTo -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
size
abstract int size()
Returns number of key-value pairs in this array.
-
values
abstract Collection<Value> values()
-
getKeyValueArray
abstract Array<Value> getKeyValueArray()
Returns the key-value pairs as an array of
{@code Value}.Odd elements are keys. Next element of an odd element is a value corresponding to the key.
For example, if this value represents
{"k1": "v1", "k2": "v2"}, this method returns ["k1", "v1", "k2", "v2"].
-
-
-
-