Class SFSObjectLite

java.lang.Object
com.smartfoxserver.entities.data.SFSObject
com.smartfoxserver.entities.data.SFSObjectLite
All Implemented Interfaces:
ISFSObject, Serializable

public final class SFSObjectLite extends SFSObject
See Also:
  • Constructor Details

    • SFSObjectLite

      public SFSObjectLite()
  • Method Details

    • newInstance

      public static SFSObject newInstance()
    • getByte

      public Byte getByte(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 interface ISFSObject
      Overrides:
      getByte in class SFSObject
      Parameters:
      key -
      Returns:
      the element, or null
    • getShort

      public Short getShort(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 interface ISFSObject
      Overrides:
      getShort in class SFSObject
      Parameters:
      key -
      Returns:
      the element, or null
    • getLong

      public Long getLong(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 interface ISFSObject
      Overrides:
      getLong in class SFSObject
      Parameters:
      key -
      Returns:
      the element, or null
    • getFloat

      public Float getFloat(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 interface ISFSObject
      Overrides:
      getFloat in class SFSObject
      Parameters:
      key -
      Returns:
      the element, or null
    • getBoolArray

      public Collection<Boolean> getBoolArray(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 interface ISFSObject
      Overrides:
      getBoolArray in class SFSObject
      Parameters:
      key -
      Returns:
      the element, or null
    • getShortArray

      public Collection<Short> getShortArray(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 interface ISFSObject
      Overrides:
      getShortArray in class SFSObject
      Parameters:
      key -
      Returns:
      the element, or null
    • getIntArray

      public Collection<Integer> getIntArray(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 interface ISFSObject
      Overrides:
      getIntArray in class SFSObject
      Parameters:
      key -
      Returns:
      the element, or null
    • getFloatArray

      public Collection<Float> getFloatArray(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 interface ISFSObject
      Overrides:
      getFloatArray in class SFSObject
      Parameters:
      key -
      Returns:
      the element, or null
    • getDoubleArray

      public Collection<Double> getDoubleArray(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 interface ISFSObject
      Overrides:
      getDoubleArray in class SFSObject
      Parameters:
      key -
      Returns:
      the element, or null
    • getStringArray

      public Collection<String> getStringArray(String key)
      Description copied from interface: ISFSObject
      Get the element for the specified key as a Collection of Strings. It can be null if no element exists for the specified key Each string is limited to 32768 bytes
      Specified by:
      getStringArray in interface ISFSObject
      Overrides:
      getStringArray in class SFSObject
      Parameters:
      key -
      Returns:
      the element, or null