Interface DerivedAttribute.SourceValues

Enclosing interface:
DerivedAttribute<T>

public static interface DerivedAttribute.SourceValues
Provides the source values from which to derive the value.
  • Method Summary

    Modifier and Type
    Method
    Description
    <T> T
    get(Attribute<T> attribute)
    Returns the source value associated with the given attribute.
    default <T> Optional<T>
    optional(Attribute<T> attribute)
    Returns the source value associated with the given attribute.
  • Method Details

    • get

      <T> T get(Attribute<T> attribute)
      Returns the source value associated with the given attribute.
      Type Parameters:
      T - the value type
      Parameters:
      attribute - the attribute which value to retrieve
      Returns:
      the value associated with attribute
    • optional

      default <T> Optional<T> optional(Attribute<T> attribute)
      Returns the source value associated with the given attribute.
      Type Parameters:
      T - the value type
      Parameters:
      attribute - the attribute which value to retrieve
      Returns:
      the value associated with attribute, an empty Optional in case of null