Class SFSObjectLite
- java.lang.Object
-
- com.smartfoxserver.v2.entities.data.SFSObject
-
- com.smartfoxserver.v2.entities.data.SFSObjectLite
-
- All Implemented Interfaces:
ISFSObject
,java.io.Serializable
public final class SFSObjectLite extends SFSObject
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SFSObjectLite()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Collection<java.lang.Boolean>
getBoolArray(java.lang.String key)
Get the element for the specified key as a Collection of Booleans.java.lang.Byte
getByte(java.lang.String key)
Get the element for the specified key as Byte (signed 8 bit).java.util.Collection<java.lang.Double>
getDoubleArray(java.lang.String key)
Get the element for the specified key as a Collection of Double.java.lang.Float
getFloat(java.lang.String key)
Get the element for the specified key as Float (signed decimal 32 bit).java.util.Collection<java.lang.Float>
getFloatArray(java.lang.String key)
Get the element for the specified key as a Collection of Float.java.util.Collection<java.lang.Integer>
getIntArray(java.lang.String key)
Get the element for the specified key as a Collection of Integer.java.lang.Long
getLong(java.lang.String key)
Get the element for the specified key as Long (signed 64 bit).java.lang.Short
getShort(java.lang.String key)
Get the element for the specified key as Short (signed 16 bit).java.util.Collection<java.lang.Short>
getShortArray(java.lang.String key)
Get the element for the specified key as a Collection of Short.java.util.Collection<java.lang.String>
getUtfStringArray(java.lang.String key)
Get the element for the specified key as a Collection of String.static SFSObject
newInstance()
-
Methods inherited from class com.smartfoxserver.v2.entities.data.SFSObject
containsKey, get, getBool, getByteArray, getClass, getDouble, getDump, getDump, getHexDump, getInt, getKeys, getLongArray, getSFSArray, getSFSObject, getText, getUnsignedByte, getUnsignedByteArray, getUtfString, isNull, iterator, newFromBinaryData, newFromJsonData, newFromObject, newFromResultSet, put, putBool, putBoolArray, putByte, putByteArray, putClass, putDouble, putDoubleArray, putFloat, putFloatArray, putInt, putIntArray, putLong, putLongArray, putNull, putSFSArray, putSFSObject, putShort, putShortArray, putText, putUtfString, putUtfStringArray, removeElement, size, toBinary, toJson, toString
-
-
-
-
Method Detail
-
newInstance
public static SFSObject newInstance()
-
getByte
public java.lang.Byte getByte(java.lang.String key)
Description copied from interface:ISFSObject
Get the element for the specified key as Byte (signed 8 bit). It can be null if no element exists for the specified key- Specified by:
getByte
in interfaceISFSObject
- Overrides:
getByte
in classSFSObject
- Returns:
- the element, or null
-
getShort
public java.lang.Short getShort(java.lang.String key)
Description copied from interface:ISFSObject
Get the element for the specified key as Short (signed 16 bit). It can be null if no element exists for the specified key- Specified by:
getShort
in interfaceISFSObject
- Overrides:
getShort
in classSFSObject
- Returns:
- the element, or null
-
getLong
public java.lang.Long getLong(java.lang.String key)
Description copied from interface:ISFSObject
Get the element for the specified key as Long (signed 64 bit). It can be null if no element exists for the specified key- Specified by:
getLong
in interfaceISFSObject
- Overrides:
getLong
in classSFSObject
- Returns:
- the element, or null
-
getFloat
public java.lang.Float getFloat(java.lang.String key)
Description copied from interface:ISFSObject
Get the element for the specified key as Float (signed decimal 32 bit). It can be null if no element exists for the specified key- Specified by:
getFloat
in interfaceISFSObject
- Overrides:
getFloat
in classSFSObject
- Returns:
- the element, or null
-
getBoolArray
public java.util.Collection<java.lang.Boolean> getBoolArray(java.lang.String key)
Description copied from interface:ISFSObject
Get the element for the specified key as a Collection of Booleans. It can be null if no element exists for the specified key- Specified by:
getBoolArray
in interfaceISFSObject
- Overrides:
getBoolArray
in classSFSObject
- Returns:
- the element, or null
-
getShortArray
public java.util.Collection<java.lang.Short> getShortArray(java.lang.String key)
Description copied from interface:ISFSObject
Get the element for the specified key as a Collection of Short. It can be null if no element exists for the specified key- Specified by:
getShortArray
in interfaceISFSObject
- Overrides:
getShortArray
in classSFSObject
- Returns:
- the element, or null
-
getIntArray
public java.util.Collection<java.lang.Integer> getIntArray(java.lang.String key)
Description copied from interface:ISFSObject
Get the element for the specified key as a Collection of Integer. It can be null if no element exists for the specified key- Specified by:
getIntArray
in interfaceISFSObject
- Overrides:
getIntArray
in classSFSObject
- Returns:
- the element, or null
-
getFloatArray
public java.util.Collection<java.lang.Float> getFloatArray(java.lang.String key)
Description copied from interface:ISFSObject
Get the element for the specified key as a Collection of Float. It can be null if no element exists for the specified key- Specified by:
getFloatArray
in interfaceISFSObject
- Overrides:
getFloatArray
in classSFSObject
- Returns:
- the element, or null
-
getDoubleArray
public java.util.Collection<java.lang.Double> getDoubleArray(java.lang.String key)
Description copied from interface:ISFSObject
Get the element for the specified key as a Collection of Double. It can be null if no element exists for the specified key- Specified by:
getDoubleArray
in interfaceISFSObject
- Overrides:
getDoubleArray
in classSFSObject
- Returns:
- the element, or null
-
getUtfStringArray
public java.util.Collection<java.lang.String> getUtfStringArray(java.lang.String key)
Description copied from interface:ISFSObject
Get the element for the specified key as a Collection of String. It can be null if no element exists for the specified key- Specified by:
getUtfStringArray
in interfaceISFSObject
- Overrides:
getUtfStringArray
in classSFSObject
- Returns:
- the element, or null
-
-