|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcc.plural.jsonij.Value
cc.plural.jsonij.ObjectImp<CS,V>
public class ObjectImp<CS extends CharSequence,V extends Value>
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class cc.plural.jsonij.Value |
|---|
Value.TYPE |
| Nested classes/interfaces inherited from interface java.util.Map |
|---|
Map.Entry<K,V> |
| Field Summary | |
|---|---|
protected LinkedHashMap<CS,V> |
mapValue
Holds the Mapping Values for the Object |
protected ArrayList<CS> |
valueOrder
Holds the Key order so values can be extracted in the order they were added. |
| Fields inherited from class cc.plural.jsonij.Value |
|---|
valueType |
| Constructor Summary | |
|---|---|
ObjectImp()
Default Constructor |
|
| Method Summary | |
|---|---|
void |
clear()
|
boolean |
containsKey(Object key)
|
boolean |
containsValue(Object value)
|
Set<Map.Entry<CS,V>> |
entrySet()
|
V |
get(int i)
Extracts a Value instance at an Index. |
V |
get(Object key)
|
protected Value.TYPE |
internalType()
Internal Method to find the internalType for the Object. |
boolean |
isEmpty()
|
Set<CS> |
keySet()
|
int |
nestedSize()
Finds the nested elements under this Value. |
V |
put(CS key,
V value)
|
void |
putAll(Map<? extends CS,? extends V> m)
|
V |
remove(Object key)
|
V |
safeGet(Object key)
|
int |
size()
Retrieves the size of the Value. |
String |
toJSON()
Converts the current Value into a JSON String that represents it. |
Collection<V> |
values()
|
| Methods inherited from class cc.plural.jsonij.Value |
|---|
compareTo, equals, get, getBoolean, getDouble, getInt, getNumber, getString, getValueType, has, hashCode, isNull, toString, type, valueKeySet |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.Map |
|---|
equals, hashCode |
| Field Detail |
|---|
protected LinkedHashMap<CS extends CharSequence,V extends Value> mapValue
protected ArrayList<CS extends CharSequence> valueOrder
| Constructor Detail |
|---|
public ObjectImp()
| Method Detail |
|---|
protected Value.TYPE internalType()
Value
internalType in class Valuepublic void clear()
clear in interface Map<CS extends CharSequence,V extends Value>public boolean containsKey(Object key)
containsKey in interface Map<CS extends CharSequence,V extends Value>public boolean containsValue(Object value)
containsValue in interface Map<CS extends CharSequence,V extends Value>public Set<Map.Entry<CS,V>> entrySet()
entrySet in interface Map<CS extends CharSequence,V extends Value>public V get(int i)
Value
get in class Valuei - The index to get the value for.
public V get(Object key)
get in interface Map<CS extends CharSequence,V extends Value>public V safeGet(Object key)
public boolean isEmpty()
isEmpty in interface Map<CS extends CharSequence,V extends Value>public Set<CS> keySet()
keySet in interface Map<CS extends CharSequence,V extends Value>
public V put(CS key,
V value)
put in interface Map<CS extends CharSequence,V extends Value>public void putAll(Map<? extends CS,? extends V> m)
putAll in interface Map<CS extends CharSequence,V extends Value>public V remove(Object key)
remove in interface Map<CS extends CharSequence,V extends Value>public int size()
Value
size in interface Map<CS extends CharSequence,V extends Value>size in class Valuepublic Collection<V> values()
values in interface Map<CS extends CharSequence,V extends Value>public int nestedSize()
Value
nestedSize in class Valuepublic String toJSON()
Value
toJSON in class Value
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||