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