@Deprecated public interface Storage
Deprecated.
this is a feature in progress of development, there may be backward incompatible changes done to it, so please use with care
Suite specific storage.
  • Method Summary

    Modifier and Type
    Method
    Description
    <T> T
    get(String key, Class<T> cls)
    Deprecated.
    Retrieve value matching provided key from the storage.
    <T> T
    getOrDefault(String key, Class<T> cls, T defaultValue)
    Deprecated.
    Retrieve value provided key from the storage or defaultValue when storage does not contain provided key.
    void
    put(String key, Object value)
    Deprecated.
    Store value under provided key in the storage.
    void
    putOrReplace(String key, Object value)
    Deprecated.
    Store value under provided key in the storage.
  • Method Details

    • get

      <T> T get(String key, Class<T> cls)
      Deprecated.
      Retrieve value matching provided key from the storage.
      Type Parameters:
      T - target type of the value
      Parameters:
      key - key of the value
      cls - target type of the value
      Returns:
      value from the storage or null when provided key was not found
    • getOrDefault

      <T> T getOrDefault(String key, Class<T> cls, T defaultValue)
      Deprecated.
      Retrieve value provided key from the storage or defaultValue when storage does not contain provided key.
      Type Parameters:
      T - target type of the value
      Parameters:
      key - key of the value
      cls - target type of the value
      defaultValue - value to return when provided key was not found
      Returns:
      value from the storage or null when no such value is stored
    • put

      void put(String key, Object value)
      Deprecated.
      Store value under provided key in the storage. Value will not be stored when already exists.
      Parameters:
      key - key of the value
      value - value to store
    • putOrReplace

      void putOrReplace(String key, Object value)
      Deprecated.
      Store value under provided key in the storage. Value will replace stored value nder provided key when already exists.
      Parameters:
      key - key of the value
      value - value to store