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