public abstract class Input extends Object
Modifier and Type | Method and Description |
---|---|
Input |
clearLinks()
Clear all Linkables from this Input.
|
Linkable.Double |
values()
Return a
Linkable.Double for reacting on inputs. |
<T extends org.praxislive.core.Value> |
valuesAs(Class<T> type)
Return a
Linkable of inputs as the provided Value subclass. |
<T> Linkable<T> |
valuesAs(Function<org.praxislive.core.Value,T> converter)
Return a
Linkable of inputs transformed by the provided converter
from Value to the required type. |
public Linkable.Double values()
Linkable.Double
for reacting on inputs. None numeric
inputs will be ignored.public <T> Linkable<T> valuesAs(Function<org.praxislive.core.Value,T> converter)
Linkable
of inputs transformed by the provided converter
from Value to the required type.T
- converter
- convert Value to required typepublic <T extends org.praxislive.core.Value> Linkable<T> valuesAs(Class<T> type)
Linkable
of inputs as the provided Value subclass. If the
input Value cannot be coerced to the requested type it will be ignored.T
- type
- required Value subclasspublic Input clearLinks()