private void setLow(PointInTime low) { if (Precision.MILLISECOND.equals(low.getPrecision())) { this.low = low.clone(); } else { this.low = low.promote().getLow(); } }
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)); } } }