Interface Getter<ENTITY>

Type Parameters:
ENTITY - the entity type
All Known Subinterfaces:
BooleanGetter<ENTITY>, ByteGetter<ENTITY>, CharGetter<ENTITY>, DoubleGetter<ENTITY>, FloatGetter<ENTITY>, GetBoolean<ENTITY>, GetByte<ENTITY>, GetChar<ENTITY>, GetDouble<ENTITY>, GetFloat<ENTITY>, GetInt<ENTITY>, GetLong<ENTITY>, GetReference<ENTITY,T>, GetShort<ENTITY>, IntGetter<ENTITY>, LongGetter<ENTITY>, ReferenceGetter<ENTITY,V>, ShortGetter<ENTITY>

public interface Getter<ENTITY>
Since:
3.0.0
Author:
Emil Forslund
  • Method Summary

    Modifier and Type
    Method
    Description
    apply(ENTITY entity)
    A generic (untyped) get method.
    default Function<ENTITY,? extends Object>
    Returns this object, typed as a Function method.
  • Method Details

    • apply

      Object apply(ENTITY entity)
      A generic (untyped) get method.
      Parameters:
      entity - the entity to get from
      Returns:
      the value
    • asFunction

      default Function<ENTITY,? extends Object> asFunction()
      Returns this object, typed as a Function method.
      Returns:
      this object as a function