Interface DerivedAttributeDefinition<T>

Type Parameters:
T - the underlying type
All Superinterfaces:
AttributeDefinition<T>

public interface DerivedAttributeDefinition<T> extends AttributeDefinition<T>
A definition for attributes which value is derived from the values of one or more attribute.
  • Method Details

    • sourceAttributes

      List<Attribute<?>> sourceAttributes()
      Returns:
      the attributes this attribute derives from.
    • valueProvider

      DerivedAttribute.Provider<T> valueProvider()
      Returns:
      the value provider, providing the derived value
    • cached

      boolean cached()
      Note that cached attributes are included when an entity is serialized.
      Returns:
      true if the value of this derived attribute is cached, false if computed on each access