- Type Parameters:
T
- The value type.
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface
@ClassVersion(sourceVersion="$Id: Setter.java 993 2022-01-19 22:26:20Z tquadrat $")
@API(status=STABLE,
since="0.0.5")
public interface Setter<T>
The definition for a setter method.
This is a
functional interface
whose functional method is
set(Object)
.
This interface does not extend the otherwise very similar
interface
Consumer
.
- Author:
- Thomas Thrien (thomas.thrien@tquadrat.org)
- Version:
- $Id: Setter.java 993 2022-01-19 22:26:20Z tquadrat $
- Since:
- 0.0.5
- UML Diagram
-
UML Diagram for "org.tquadrat.foundation.function.Setter"
-
Method Summary
-
Method Details
-
set
Takes the given argument and stores it somewhere.- Parameters:
value
- The value to store.
-