Interface Property<T>

Type Parameters:
T - The type of object defining this property
All Known Implementing Classes:
DirectlyAccessedProperty, MethodAccessedProperty
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 Property<T>
Interface describing a mechanism that can read a predefined property from a given instance.
Since:
2.0
Author:
Maxim Fedorov, Allard Buijze
  • Method Summary

    Modifier and Type
    Method
    Description
    <V> V
    getValue(T target)
    Returns the value of the property on given target.
  • Method Details

    • getValue

      <V> V getValue(T target)
      Returns the value of the property on given target.
      Type Parameters:
      V - The type of value expected
      Parameters:
      target - The instance to get the property value from
      Returns:
      the property value on target