Interface ReferenceGetter<ENTITY,V>

Type Parameters:
ENTITY - the entity
V - the type of the value to return
All Superinterfaces:
Function<ENTITY,V>, Getter<ENTITY>
All Known Subinterfaces:
GetReference<ENTITY,T>
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface ReferenceGetter<ENTITY,V> extends Getter<ENTITY>, Function<ENTITY,V>
A short-cut functional reference to the getXXX() method for a particular field in an entity.

A ReferenceGetter<ENTITY, V> has the following signature: interface ENTITY { V getXXX(); }

Since:
2.2.0
Author:
Emil Forslund
  • Method Summary

    Modifier and Type
    Method
    Description
    default Function<ENTITY,V>
    Returns this object, typed as a Function method.

    Methods inherited from interface java.util.function.Function

    andThen, apply, compose

    Methods inherited from interface com.speedment.jpastreamer.field.method.Getter

    apply
  • Method Details

    • asFunction

      default Function<ENTITY,V> asFunction()
      Description copied from interface: Getter
      Returns this object, typed as a Function method.
      Specified by:
      asFunction in interface Getter<ENTITY>
      Returns:
      this object as a function