Class SFSArrayLite
- java.lang.Object
-
- com.smartfoxserver.v2.entities.data.SFSArray
-
- com.smartfoxserver.v2.entities.data.SFSArrayLite
-
- All Implemented Interfaces:
ISFSArray
,java.io.Serializable
public class SFSArrayLite extends SFSArray
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SFSArrayLite()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Collection<java.lang.Boolean>
getBoolArray(int key)
Get the element at the specified index as Collection of Boolean.java.lang.Byte
getByte(int index)
Get the element at the specified index as Byte.java.util.Collection<java.lang.Double>
getDoubleArray(int key)
Get the element at the specified index as Collection of Double.java.lang.Float
getFloat(int index)
Get the element at the specified index as Float.java.util.Collection<java.lang.Float>
getFloatArray(int key)
Get the element at the specified index as Collection of Float.java.util.Collection<java.lang.Integer>
getIntArray(int key)
Get the element at the specified index as Collection of Int.java.lang.Long
getLong(int index)
Get the element at the specified index as Long.java.lang.Short
getShort(int index)
Get the element at the specified index as Short.java.util.Collection<java.lang.Short>
getShortArray(int key)
Get the element at the specified index as Collection of Short.java.util.Collection<java.lang.String>
getUtfStringArray(int key)
Get the element at the specified index as Collection of String.static SFSArrayLite
newInstance()
-
Methods inherited from class com.smartfoxserver.v2.entities.data.SFSArray
add, addBool, addBoolArray, addByte, addByteArray, addClass, addDouble, addDoubleArray, addFloat, addFloatArray, addInt, addIntArray, addLong, addLongArray, addNull, addSFSArray, addSFSObject, addShort, addShortArray, addText, addUtfString, addUtfStringArray, contains, get, getBool, getByteArray, getClass, getDouble, getDump, getDump, getElementAt, getHexDump, getInt, getLongArray, getSFSArray, getSFSObject, getText, getUnsignedByte, getUnsignedByteArray, getUtfString, isNull, iterator, newFromBinaryData, newFromJsonData, newFromResultSet, removeElementAt, size, toBinary, toJson, toString
-
-
-
-
Method Detail
-
newInstance
public static SFSArrayLite newInstance()
-
getByte
public java.lang.Byte getByte(int index)
Description copied from interface:ISFSArray
Get the element at the specified index as Byte. It can be null if no element exists for the specified index
-
getShort
public java.lang.Short getShort(int index)
Description copied from interface:ISFSArray
Get the element at the specified index as Short. It can be null if no element exists for the specified index
-
getLong
public java.lang.Long getLong(int index)
Description copied from interface:ISFSArray
Get the element at the specified index as Long. It can be null if no element exists for the specified index
-
getFloat
public java.lang.Float getFloat(int index)
Description copied from interface:ISFSArray
Get the element at the specified index as Float. It can be null if no element exists for the specified index
-
getBoolArray
public java.util.Collection<java.lang.Boolean> getBoolArray(int key)
Description copied from interface:ISFSArray
Get the element at the specified index as Collection of Boolean. It can be null if no element exists for the specified index- Specified by:
getBoolArray
in interfaceISFSArray
- Overrides:
getBoolArray
in classSFSArray
- Returns:
- the element, or null
-
getShortArray
public java.util.Collection<java.lang.Short> getShortArray(int key)
Description copied from interface:ISFSArray
Get the element at the specified index as Collection of Short. It can be null if no element exists for the specified index- Specified by:
getShortArray
in interfaceISFSArray
- Overrides:
getShortArray
in classSFSArray
- Returns:
- the element, or null
-
getIntArray
public java.util.Collection<java.lang.Integer> getIntArray(int key)
Description copied from interface:ISFSArray
Get the element at the specified index as Collection of Int. It can be null if no element exists for the specified index- Specified by:
getIntArray
in interfaceISFSArray
- Overrides:
getIntArray
in classSFSArray
- Returns:
- the element, or null
-
getFloatArray
public java.util.Collection<java.lang.Float> getFloatArray(int key)
Description copied from interface:ISFSArray
Get the element at the specified index as Collection of Float. It can be null if no element exists for the specified index- Specified by:
getFloatArray
in interfaceISFSArray
- Overrides:
getFloatArray
in classSFSArray
- Returns:
- the element, or null
-
getDoubleArray
public java.util.Collection<java.lang.Double> getDoubleArray(int key)
Description copied from interface:ISFSArray
Get the element at the specified index as Collection of Double. It can be null if no element exists for the specified index- Specified by:
getDoubleArray
in interfaceISFSArray
- Overrides:
getDoubleArray
in classSFSArray
- Returns:
- the element, or null
-
getUtfStringArray
public java.util.Collection<java.lang.String> getUtfStringArray(int key)
Description copied from interface:ISFSArray
Get the element at the specified index as Collection of String. It can be null if no element exists for the specified index- Specified by:
getUtfStringArray
in interfaceISFSArray
- Overrides:
getUtfStringArray
in classSFSArray
- Returns:
- the element, or null
-
-