예제 #1
0
 private void setLow(PointInTime low) {
   if (Precision.MILLISECOND.equals(low.getPrecision())) {
     this.low = low.clone();
   } else {
     this.low = low.promote().getLow();
   }
 }
예제 #2
0
 private void setHigh(PointInTime high) {
   if (Precision.MILLISECOND.equals(high.getPrecision())) {
     this.high = high.clone();
   } else {
     this.high = high.promote().getHigh();
     if (isHighClosed()) {
       this.high = this.high.subtract(Period.millis(1));
     }
   }
 }