/** * Represents interval [minStamp, maxStamp) * @param minStamp the minimum timestamp, inclusive * @param maxStamp the maximum timestamp, exclusive * @throws IllegalArgumentException if either <0, * @deprecated This is made @InterfaceAudience.Private in the 2.0 line and above and may be * changed to private or removed in 3.0. */ @Deprecated @InterfaceAudience.Private public TimeRange(long minStamp, long maxStamp) { check(minStamp, maxStamp); this.minStamp = minStamp; this.maxStamp = maxStamp; this.allTime = isAllTime(minStamp, maxStamp); }
/** * Represents interval [minStamp, maxStamp) * @param minStamp the minimum timestamp, inclusive * @param maxStamp the maximum timestamp, exclusive * @throws IllegalArgumentException if either <0, * @deprecated This is made @InterfaceAudience.Private in the 2.0 line and above and may be * changed to private or removed in 3.0. */ @Deprecated @InterfaceAudience.Private public TimeRange(long minStamp, long maxStamp) { check(minStamp, maxStamp); this.minStamp = minStamp; this.maxStamp = maxStamp; this.allTime = isAllTime(minStamp, maxStamp); }
/** * Represents interval [minStamp, maxStamp) * @param minStamp the minimum timestamp, inclusive * @param maxStamp the maximum timestamp, exclusive * @throws IllegalArgumentException if either <0, * @deprecated This is made @InterfaceAudience.Private in the 2.0 line and above and may be * changed to private or removed in 3.0. */ @Deprecated @InterfaceAudience.Private public TimeRange(long minStamp, long maxStamp) { check(minStamp, maxStamp); this.minStamp = minStamp; this.maxStamp = maxStamp; this.allTime = isAllTime(minStamp, maxStamp); }