Skip to content

use FunctionalInterface for SAM interface StringValue #52

@homebeaver

Description

@homebeaver

Interfaces mit einer einzigen abstrakten Methode heißen neuerdings "Functional Interface Types"
oder auch "SAM Types". "SAM" steht für "Single Abstract Method".
Solche Interfaces können mit der Annotation @FunctionalInterface versehen werden
und haben für Lambdas eine besondere Bedeutung,
da sie die einzigen Typen sind, die als "Target-Typing-Zieltypen" in Frage kommen.

siehe: SAM

interface StringValue ist "SAM" !!!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions