T
- generic type@FunctionalInterface
public interface FloatSetter<T>
Especially useful for handling setting properties which have a float value.
class A
{
private float value;
public float getValue()
{
return value;
}
public void setValue(float value)
{
this.value = value;
}
}
// [...]
FloatSetter<A> valueSetter = A::setValue;
The other way round, i.e. a FloatGetter
, is provided
by ToFloatFunction
.Modifier and Type | Method and Description |
---|---|
void |
set(T item,
float value)
Handle an item and a float value.
|