public class Range extends Object
Modifier and Type | Field and Description |
---|---|
org.openjdk.jmc.common.unit.IQuantity |
endTime |
org.openjdk.jmc.common.unit.IQuantity |
startTime |
Constructor and Description |
---|
Range(org.openjdk.jmc.common.unit.IQuantity startTime,
org.openjdk.jmc.common.unit.IQuantity endTime) |
Modifier and Type | Method and Description |
---|---|
boolean |
isAfter(org.openjdk.jmc.common.unit.IQuantity time) |
boolean |
isBefore(org.openjdk.jmc.common.unit.IQuantity time) |
boolean |
isInside(org.openjdk.jmc.common.unit.IQuantity time) |
String |
toString() |
public final org.openjdk.jmc.common.unit.IQuantity startTime
public final org.openjdk.jmc.common.unit.IQuantity endTime
public Range(org.openjdk.jmc.common.unit.IQuantity startTime, org.openjdk.jmc.common.unit.IQuantity endTime)
startTime
- range startendTime
- range endpublic boolean isInside(org.openjdk.jmc.common.unit.IQuantity time)
true
if the time is in the closed interval of this rangepublic boolean isBefore(org.openjdk.jmc.common.unit.IQuantity time)
true
if the time is before the closed interval of this rangepublic boolean isAfter(org.openjdk.jmc.common.unit.IQuantity time)
true
if the time is after the closed interval of this rangeCopyright © 2020. All rights reserved.