Class ConstantGetter<T,P>

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

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

    • ConstantGetter

      public ConstantGetter(P value)
  • Method Details

    • get

      public P get(T target)
      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