Class BoxedIntGetter<T>

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

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

    • BoxedIntGetter

      public BoxedIntGetter(Getter<? super T,? extends Integer> delegate)
  • Method Details

    • getInt

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

      public Integer get(T target) throws Exception
      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
      Throws:
      Exception - if anything goes wrong