Class ConstantLongGetter<T>

java.lang.Object
org.simpleflatmapper.reflect.getter.ConstantLongGetter<T>
All Implemented Interfaces:
Getter<T,Long>, LongGetter<T>

public class ConstantLongGetter<T> extends Object implements LongGetter<T>, Getter<T,Long>
  • Constructor Details

    • ConstantLongGetter

      public ConstantLongGetter(long value)
  • Method Details

    • getLong

      public long getLong(T target)
      Specified by:
      getLong in interface LongGetter<T>
    • get

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