Interface Setter<T>

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 1295 2026-10-18 12:34:27Z 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 1295 2026-10-18 12:34:27Z tquadrat $
Since:
0.0.5
UML Diagram
UML Diagram for "org.tquadrat.foundation.function.Setter"⁠

UML Diagram for "org.tquadrat.foundation.function.Setter"

UML Diagram for "org.tquadrat.foundation.function.Setter"⁠
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    set(T value)
    Takes the given argument and stores it somewhere.
  • Method Details

    • set

      void set(T value)

      Takes the given argument and stores it somewhere.

      Parameters:
      value - The value to store.