Class MethodGetter<T,P>

java.lang.Object
org.simpleflatmapper.reflect.getter.MethodGetter<T,P>
All Implemented Interfaces:
Getter<T,P>

public class MethodGetter<T,P> extends Object implements Getter<T,P>
  • Constructor Details

    • MethodGetter

      public MethodGetter(Method method)
  • Method Details

    • get

      public P get(T target) throws Exception
      Description copied from interface: Getter
      Return the property from the specified object.
      Specified by:
      get in interface Getter<T,P>
      Parameters:
      target - the object to get the property from
      Returns:
      the property
      Throws:
      Exception - if anything goes wrong
    • toString

      public String toString()
      Overrides:
      toString in class Object