Package com.intellij.openapi.util
Interface UserDataHolderEx
-
- All Superinterfaces:
UserDataHolder
- All Known Implementing Classes:
CapturingProcessHandler
,OSProcessHandler
,ProcessHandler
,UserDataHolderBase
public interface UserDataHolderEx extends UserDataHolder
- Author:
- cdr
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <T> T
putUserDataIfAbsent(Key<T> key, T value)
<T> boolean
replace(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 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)
-
-