Code example for Field

Methods: getLong

0
    } 
 
    @Override 
    public long getFieldValueLong(Object instance) {
      try { 
        return field.getLong(instance);
      } catch (IllegalAccessException e) {
        throw new IllegalStateException(
            format("cannot access %s field", instance.getClass()));
      } 
    } 
 
    @Override 
    public float getFieldValueFloat(Object instance) {
      try { 
        return field.getFloat(instance);
      } catch (IllegalAccessException e) {
        throw new IllegalStateException(
            format("cannot access %s field", instance.getClass()));
      } 
    }