Class ConstantIntGetter<T>

java.lang.Object
org.simpleflatmapper.reflect.getter.ConstantIntGetter<T>
All Implemented Interfaces:
Getter<T,Integer>, IntGetter<T>

public class ConstantIntGetter<T> extends Object implements IntGetter<T>, Getter<T,Integer>
  • Constructor Details

    • ConstantIntGetter

      public ConstantIntGetter(int value)
  • Method Details

    • getInt

      public int getInt(T target)
      Specified by:
      getInt in interface IntGetter<T>
    • get

      public Integer get(T target)
      Description copied from interface: Getter
      Return the property from the specified object.
      Specified by:
      get in interface Getter<T,Integer>
      Parameters:
      target - the object to get the property from
      Returns:
      the property