Class SFSArrayLite

java.lang.Object
com.smartfoxserver.entities.data.SFSArray
com.smartfoxserver.entities.data.SFSArrayLite
All Implemented Interfaces:
ISFSArray, Serializable

public class SFSArrayLite extends SFSArray
See Also:
  • Constructor Details

    • SFSArrayLite

      public SFSArrayLite()
  • Method Details

    • newInstance

      public static SFSArrayLite newInstance()
    • getByte

      public 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
      Specified by:
      getByte in interface ISFSArray
      Overrides:
      getByte in class SFSArray
      Parameters:
      index -
      Returns:
      the element, or null
    • getShort

      public 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
      Specified by:
      getShort in interface ISFSArray
      Overrides:
      getShort in class SFSArray
      Parameters:
      index -
      Returns:
      the element, or null
    • getLong

      public 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
      Specified by:
      getLong in interface ISFSArray
      Overrides:
      getLong in class SFSArray
      Parameters:
      index -
      Returns:
      the element, or null
    • getFloat

      public 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
      Specified by:
      getFloat in interface ISFSArray
      Overrides:
      getFloat in class SFSArray
      Parameters:
      index -
      Returns:
      the element, or null
    • getBoolArray

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

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

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

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

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

      public Collection<String> getStringArray(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 Each string is limited to 32768 bytes
      Specified by:
      getStringArray in interface ISFSArray
      Overrides:
      getStringArray in class SFSArray
      Parameters:
      key -
      Returns:
      the element, or null