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