Class UserDataImpl

java.lang.Object
io.quarkus.websockets.next.runtime.UserDataImpl
All Implemented Interfaces:
UserData

final class UserDataImpl extends Object implements UserData
  • Constructor Details

    • UserDataImpl

      UserDataImpl()
  • Method Details

    • get

      public <VALUE> VALUE get(UserData.TypedKey<VALUE> key)
      Specified by:
      get in interface UserData
      Type Parameters:
      VALUE -
      Parameters:
      key -
      Returns:
      the value or null if no mapping is found
    • put

      public <VALUE> VALUE put(UserData.TypedKey<VALUE> key, VALUE value)
      Description copied from interface: UserData
      Associates the specified value with the specified key. An old value is replaced by the specified value.
      Specified by:
      put in interface UserData
      Parameters:
      key -
      value -
      Returns:
      the previous value associated with key, or null if no mapping exists
    • remove

      public <VALUE> VALUE remove(UserData.TypedKey<VALUE> key)
      Specified by:
      remove in interface UserData
      Type Parameters:
      VALUE -
      Parameters:
      key -
    • clear

      public void clear()
      Specified by:
      clear in interface UserData
    • size

      public int size()
      Specified by:
      size in interface UserData