Interface UserDataHolderEx

    • Method Detail

      • putUserDataIfAbsent

        @NotNull
        <T> T putUserDataIfAbsent​(@NotNull
                                  Key<T> key,
                                  @NotNull
                                  T value)
        Returns:
        written value
      • replace

        <T> boolean replace​(@NotNull
                            Key<T> key,
                            @Nullable
                            T oldValue,
                            @Nullable
                            T newValue)
        Replaces (atomically) old value in the map with the new one
        Returns:
        true if old value got replaced, false otherwise
        See Also:
        ConcurrentMap.replace(Object, Object, Object)