Interface Getter<T,P>

Type Parameters:
T - the targeted type
P - the property type
All Known Implementing Classes:
BoxedBooleanGetter, BoxedByteGetter, BoxedCharacterGetter, BoxedDoubleGetter, BoxedFloatGetter, BoxedIntGetter, BoxedLongGetter, BoxedShortGetter, BytesUUIDGetter, ConstantBooleanGetter, ConstantByteGetter, ConstantCharacterGetter, ConstantDoubleGetter, ConstantFloatGetter, ConstantGetter, ConstantIntGetter, ConstantLongGetter, ConstantShortGetter, EnumUnspecifiedTypeGetter, FieldGetter, GetterOnGetter, GetterWithDefaultValue, IdentityGetter, IndexedBooleanArrayGetter, IndexedByteArrayGetter, IndexedCharArrayGetter, IndexedDoubleArrayGetter, IndexedFloatArrayGetter, IndexedIntArrayGetter, IndexedListGetter, IndexedLongArrayGetter, IndexedObjectArrayGetter, IndexedShortArrayGetter, InstantiatorGetter, MethodGetter, NullGetter, OrdinalEnumGetter, StringEnumGetter, StringUUIDGetter, UUIDUnspecifiedTypeGetter

public interface Getter<T,P>
Interface representing a Getter of a property of type P on a object of type T.

use ObjectGetterFactory to instantiate.

See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    get(T target)
    Return the property from the specified object.
  • Method Details

    • get

      P get(T target) throws Exception
      Return the property from the specified object.
      Parameters:
      target - the object to get the property from
      Returns:
      the property
      Throws:
      Exception - if anything goes wrong