Class ConstantFloatGetter<T>

java.lang.Object
org.simpleflatmapper.reflect.getter.ConstantFloatGetter<T>
All Implemented Interfaces:
Getter<T,Float>, FloatGetter<T>

public class ConstantFloatGetter<T> extends Object implements FloatGetter<T>, Getter<T,Float>
  • Constructor Details

    • ConstantFloatGetter

      public ConstantFloatGetter(float value)
  • Method Details

    • getFloat

      public float getFloat(T target)
      Specified by:
      getFloat in interface FloatGetter<T>
    • get

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