|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectit.gotoandplay.smartfoxclient.data.SFSObject
public class SFSObject
| Constructor Summary | |
|---|---|
SFSObject()
Default constructor |
|
SFSObject(java.util.Collection collection)
Constructs the ActionscriptObject populating it with the passed collection |
|
SFSObject(java.util.Map map)
Constructs the ActionscriptObject populating it with the passed map |
|
| Method Summary | |
|---|---|
java.lang.Object |
get(int key)
Get an object from an index key |
java.lang.Object |
get(java.lang.String key)
Get an object from a string key |
boolean |
getBool(int key)
Get a boolean from an index key |
boolean |
getBool(java.lang.String key)
Get a boolean from a String key |
double |
getNumber(int key)
Get a number from an index key |
double |
getNumber(java.lang.String key)
Get a number from a string key |
SFSObject |
getObj(int key)
Get an ActionscriptObject from an index key |
SFSObject |
getObj(java.lang.String key)
Get an ActionscriptObject from a string key |
java.lang.String |
getString(int key)
Get a String from and index key |
java.lang.String |
getString(java.lang.String key)
Get a String from a string key |
java.util.Set |
keySet()
Get a Set of keys |
void |
put(int key,
java.lang.Object o)
Put an object with a numeric key (Indexed Array) |
void |
put(java.lang.String key,
java.lang.Object o)
Put an object with a String key (Associative Array) |
void |
putBool(int key,
boolean b)
Put a Boolean value with a numeric key (Indexed Array) |
void |
putBool(java.lang.String key,
boolean b)
Put a Boolean value with a string key (Indexed Array) |
void |
putCollection(int key,
java.util.Collection collection)
Adds the content of a Collection, which may also include other collections or maps |
void |
putCollection(java.lang.String key,
java.util.Collection collection)
Adds the content of a Collection, which may also include other collections or maps |
void |
putMap(int key,
java.util.Map map)
Add the content of a Map, which can also contain other maps or collections |
void |
putMap(java.lang.String key,
java.util.Map map)
Add the content of a Map, which can also contain other maps or collections |
void |
putNumber(int key,
double d)
Put a Number with a numeric key (Indexed Array) |
void |
putNumber(java.lang.String key,
double d)
Put a Number with a string key (Associative Array) |
java.lang.Object |
removeElement(int key)
Remove an element |
java.lang.Object |
removeElement(java.lang.String key)
Remove an element |
int |
size()
Get the current number of elements |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SFSObject()
public SFSObject(java.util.Collection collection)
collection - a Collectionpublic SFSObject(java.util.Map map)
map - a Map| Method Detail |
|---|
public void put(java.lang.String key,
java.lang.Object o)
key - the string keyo - the object
public void put(int key,
java.lang.Object o)
key - the index keyo - the object
public void putNumber(int key,
double d)
key - the index keyd - the number (treated as double)
public void putNumber(java.lang.String key,
double d)
key - the string keyd - the number (treated as double)
public void putBool(int key,
boolean b)
key - the index keyb - the boolean
public void putBool(java.lang.String key,
boolean b)
key - the string keyb - the booleanpublic java.lang.Object get(java.lang.String key)
key - the string key
public java.lang.Object get(int key)
key - the key
public java.lang.String getString(int key)
key - the key
public java.lang.String getString(java.lang.String key)
key - the key
public double getNumber(int key)
key - the key
public double getNumber(java.lang.String key)
key - the key
public boolean getBool(int key)
key - the key
public boolean getBool(java.lang.String key)
key - the key
public SFSObject getObj(int key)
key - the index key
public SFSObject getObj(java.lang.String key)
key - the key
public int size()
public java.util.Set keySet()
public java.lang.Object removeElement(int key)
key - the index key
public java.lang.Object removeElement(java.lang.String key)
key - the string key
public void putCollection(java.lang.String key,
java.util.Collection collection)
key - the String keycollection - the Collection
public void putCollection(int key,
java.util.Collection collection)
key - the numeric keycollection - the Collection
public void putMap(java.lang.String key,
java.util.Map map)
key - the String keymap - the Map object
public void putMap(int key,
java.util.Map map)
key - the numeric keymap - the Map objectpublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||