Class DataHolder
- java.lang.Object
-
- net.sourceforge.pmd.util.fxdesigner.util.DataHolder
-
public final class DataHolder extends Object
- Author:
- Clément Fournier
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DataHolder.DataKey<T>
Uses instance equality.
-
Constructor Summary
Constructors Constructor Description DataHolder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> T
computeIfAbsent(DataHolder.DataKey<T> key, Supplier<T> value)
boolean
equals(Object o)
<T> T
getData(DataHolder.DataKey<T> key)
boolean
hasData(DataHolder.DataKey<?> key)
int
hashCode()
String
toString()
<T> DataHolder
withData(DataHolder.DataKey<T> key, T value)
-
-
-
Method Detail
-
getData
public <T> T getData(DataHolder.DataKey<T> key)
-
computeIfAbsent
public <T> T computeIfAbsent(DataHolder.DataKey<T> key, Supplier<T> value)
-
withData
public <T> DataHolder withData(DataHolder.DataKey<T> key, T value)
-
hasData
public boolean hasData(DataHolder.DataKey<?> key)
-
-