Interface Getter<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: Getter.java 1295 2026-10-18 12:34:27Z tquadrat $") @API(status=STABLE, since="0.0.5") public interface Getter<T>

The definition for a getter method.

This interface does not extend the otherwise very similar interface Supplier.

This is a functional interface whose functional method is get().

Author:
Thomas Thrien (thomas.thrien@tquadrat.org)
Version:
$Id: Getter.java 1295 2026-10-18 12:34:27Z tquadrat $
Since:
0.0.5
UML Diagram
UML Diagram for "org.tquadrat.foundation.function.Getter"⁠

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

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

    Modifier and Type
    Method
    Description
    get()
    Returns a value.
  • Method Details

    • get

      T get()

      Returns a value.

      Returns:
      The value.