public abstract class AbstractValuePluginParameter<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>,V> extends AbstractPluginParameter<G,A,R,V>
PluginParameter
implementations for which the
string representation of the value is calculated from the value.Modifier | Constructor and Description |
---|---|
protected |
AbstractValuePluginParameter(V value)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
V |
getValue()
Returns the current value of this parameter.
|
V |
getValueOrNull()
Returns the current value of this parameter.
|
void |
setValue(V value)
Updates the parameter value.
|
addPluginParameterListener, changed, getDescription, getName, removePluginParameterListener, setDescription, setName
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getParameterType, getStringValue, setStringValue, visit
protected AbstractValuePluginParameter(@NotNull V value)
value
- the initial value@NotNull public V getValue()
@NotNull public V getValueOrNull()
null
if the the value is invalidpublic void setValue(@NotNull V value)
value
- the new value