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