code: @Override
      public T apply(T entity) {
  
          double value = entity.get(this.element).doubleValue();
          double nv;
  
          if (this.up == null) {
              double high = Math.ceil(value / this.stepwidth) * this.stepwidth;
              double low = Math.floor(value / this.stepwidth) * this.stepwidth;
              nv = ((value - low < high - value) ? low : high);
          } else if (this.up.booleanValue()) {
              nv = Math.ceil(value / this.stepwidth) * this.stepwidth;
          } else {
              nv = Math.floor(value / this.stepwidth) * this.stepwidth;
          }
  
          Number num;
  
          if (this.longBased) {
              num = Long.valueOf((long) nv);
          } else {
              num = Integer.valueOf((int) nv);
          }
  
          return entity.with(lenient(this.element, num));
  
      }
docs: ~ Methoden ----------------------------------------------------------