mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
set
This commit is contained in:
@@ -64,4 +64,10 @@ public class Key<T> {
|
||||
public boolean containsIn(@Nullable UserDataHolder holder) {
|
||||
return get(holder) != null;
|
||||
}
|
||||
}
|
||||
|
||||
public void set(@Nullable UserDataHolder holder, T value) {
|
||||
if (holder != null) {
|
||||
holder.putUserData(this, value);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user