Class ConstantBooleanGetter<T>

java.lang.Object
org.simpleflatmapper.reflect.getter.ConstantBooleanGetter<T>
All Implemented Interfaces:
Getter<T,Boolean>, BooleanGetter<T>

public class ConstantBooleanGetter<T> extends Object implements BooleanGetter<T>, Getter<T,Boolean>
  • Constructor Details

    • ConstantBooleanGetter

      public ConstantBooleanGetter(boolean value)
  • Method Details

    • getBoolean

      public boolean getBoolean(T target)
      Specified by:
      getBoolean in interface BooleanGetter<T>
    • get

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