Class InstantiatorGetter<S,T,P>

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

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

    • InstantiatorGetter

      public InstantiatorGetter(Instantiator<? super S,? extends P> instantiator, Getter<? super T,? extends S> getter)
  • 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<S,T>
      Parameters:
      target - the object to get the property from
      Returns:
      the property
      Throws:
      Exception - if anything goes wrong