Class UserDataStorageImpl

  • All Implemented Interfaces:
    UserDataStorage

    public class UserDataStorageImpl
    extends Object
    implements UserDataStorage
    Author:
    Eugene Petrenko (eugene.petrenko@gmail.com) Date: 13.12.11 21:04
    • Constructor Detail

      • UserDataStorageImpl

        public UserDataStorageImpl()
    • Method Detail

      • getValue

        public <Y> Y getValue​(@NotNull
                              UserDataKey<Y> key)
        Specified by:
        getValue in interface UserDataStorage
        Type Parameters:
        Y - type of data
        Parameters:
        key - key
        Returns:
        value if found or null
      • setValue

        public <Y> void setValue​(@NotNull
                                 UserDataKey<Y> key,
                                 @Nullable
                                 Y value)
        Description copied from interface: UserDataStorage
        Sets or removes data for key.
        Specified by:
        setValue in interface UserDataStorage
        Type Parameters:
        Y - type of data
        Parameters:
        key - key
        value - value or null