public class MixedArray extends LinkedHashMap<Object,Object>
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
MixedArray()
Constructor
|
MixedArray(Collection<?> list)
Constructor
|
MixedArray(int initialCapacity)
Constructor
|
MixedArray(int initialCapacity,
float loadFactor)
Constructor
|
MixedArray(Map<?,?> map)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(Object value)
Checks if value exists in array.
|
boolean |
containsKey(Object key) |
boolean |
containsValue(Object value) |
Object |
get(int index)
Returns value with specified index.
|
Object |
get(Object key) |
MixedArray |
getArray(int index)
Returns value as array.
|
MixedArray |
getArray(Object key)
Returns value for specified key as list.
|
boolean |
getBoolean(int index)
Returns value as boolean.
|
boolean |
getBoolean(Object key)
Returns value for specified key as boolean.
|
boolean |
getBooolean(int index)
Returns value as boolean.
|
boolean |
getBooolean(Object key)
Returns value for specified key as boolean.
|
byte |
getByte(int index)
Returns value as byte.
|
byte |
getByte(Object key)
Returns value for specified key as byte.
|
char |
getChar(int index)
Returns value as char.
|
char |
getChar(Object key)
Returns value for specified key as char.
|
double |
getDouble(int index)
Returns value as double.
|
double |
getDouble(Object key)
Returns value for specified key as double.
|
float |
getFloat(int index)
Returns value as float.
|
float |
getFloat(Object key)
Returns value for specified key as float.
|
int |
getInt(int index)
Returns value as int.
|
int |
getInt(Object key)
Returns value for specified key as int.
|
long |
getLong(int index)
Returns value as long.
|
long |
getLong(Object key)
Returns value for specified key as long.
|
Mixed |
getMixed(int index)
Returns value as mixed value.
|
Mixed |
getMixed(Object key)
Returns value for specified key as mixed value.
|
short |
getShort(int index)
Returns value as short.
|
short |
getShort(Object key)
Returns value for specified key as short.
|
String |
getString(int index)
Returns value as string.
|
String |
getString(Object key)
Returns value for specified key as string.
|
Object |
getType(int index,
int type)
Returns value as custom type
|
Object |
getType(Object key,
int type)
Returns value for specified key as custom type
|
Object |
put(Object key,
Object value) |
Object |
remove(Object key) |
clear, entrySet, forEach, getOrDefault, keySet, removeEldestEntry, replaceAll, valuesclone, compute, computeIfAbsent, computeIfPresent, isEmpty, merge, putAll, putIfAbsent, remove, replace, replace, sizeequals, hashCode, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, equals, hashCode, isEmpty, merge, putAll, putIfAbsent, remove, replace, replace, sizepublic MixedArray(int initialCapacity,
float loadFactor)
initialCapacity - The initial capacityloadFactor - The load factorpublic MixedArray(int initialCapacity)
initialCapacity - The initial capacitypublic MixedArray()
public MixedArray(Map<?,?> map)
map - The map to copypublic MixedArray(Collection<?> list)
list - The list to copypublic Object get(Object key)
get in interface Map<Object,Object>get in class LinkedHashMap<Object,Object>HashMap.get(java.lang.Object)public Mixed getMixed(Object key)
key - The keypublic String getString(Object key)
key - The keypublic boolean getBooolean(Object key)
key - The keypublic byte getByte(Object key)
key - The keypublic char getChar(Object key)
key - The keypublic double getDouble(Object key)
key - The keypublic float getFloat(Object key)
key - The keypublic int getInt(Object key)
key - The keypublic boolean getBoolean(Object key)
key - The keypublic MixedArray getArray(Object key)
key - The keypublic long getLong(Object key)
key - The keypublic short getShort(Object key)
key - The keypublic Object getType(Object key, int type)
key - The keytype - The typepublic boolean containsKey(Object key)
containsKey in interface Map<Object,Object>containsKey in class HashMap<Object,Object>HashMap.containsKey(java.lang.Object)public boolean containsValue(Object value)
containsValue in interface Map<Object,Object>containsValue in class LinkedHashMap<Object,Object>HashMap.containsValue(java.lang.Object)public boolean contains(Object value)
value - The value to checkpublic Object get(int index)
index - The indexpublic Mixed getMixed(int index)
index - The indexpublic String getString(int index)
index - The indexpublic boolean getBooolean(int index)
index - The indexpublic byte getByte(int index)
index - The indexpublic char getChar(int index)
index - The indexpublic double getDouble(int index)
index - The indexpublic float getFloat(int index)
index - The indexpublic int getInt(int index)
index - The indexpublic boolean getBoolean(int index)
index - The indexpublic MixedArray getArray(int index)
index - The indexpublic long getLong(int index)
index - The indexpublic short getShort(int index)
index - The indexpublic Object getType(int index, int type)
index - The indextype - The typeCopyright © 2006–2017. All rights reserved.