Interface UserDataHolderEx

All Superinterfaces:
UserDataHolder

public interface UserDataHolderEx extends UserDataHolder
  • Method Summary

    Modifier and Type
    Method
    Description
    <T> T
    putUserDataIfAbsent(@NotNull Key<T> key, T value)
     
    <T> boolean
    replace(@NotNull Key<T> key, T oldValue, T newValue)
    Replaces (atomically) old value in the map with the new one

    Methods inherited from interface com.intellij.openapi.util.UserDataHolder

    getUserData, putUserData
  • Method Details

    • putUserDataIfAbsent

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

      <T> boolean replace(@NotNull @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: