Interface UserDataStorage

  • All Known Implementing Classes:
    UserDataStorageImpl

    public interface UserDataStorage
    Since:
    7.0
    Author:
    Eugene Petrenko (eugene.petrenko@gmail.com) Date: 13.12.11 20:58
    • Method Detail

      • getValue

        @Nullable
        <Y> Y getValue​(@NotNull
                       UserDataKey<Y> key)
        Type Parameters:
        Y - type of data
        Parameters:
        key - key
        Returns:
        value if found or null
        Since:
        7.0
      • setValue

        <Y> void setValue​(@NotNull
                          UserDataKey<Y> key,
                          @Nullable
                          Y value)
        Sets or removes data for key.
        Type Parameters:
        Y - type of data
        Parameters:
        key - key
        value - value or null
        Since:
        7.0