public class Interval extends Object implements Cloneable
Constructor and Description |
---|
Interval() |
Interval(long lowerBound,
long upperBound) |
Modifier and Type | Method and Description |
---|---|
void |
add(Interval another)
Calculates the path addition of this interval with another interval.
|
Interval |
clone() |
boolean |
equals(Object obj) |
long |
getLowerBound() |
long |
getUpperBound() |
int |
hashCode() |
void |
intersect(Interval another)
Calculates the value of the intersection between
this Interval and another interval.
|
void |
setLowerBound(long lowerBound) |
void |
setUpperBound(long upperBound) |
String |
toString() |
public static final long MIN
public static final long MAX
public Interval()
public Interval(long lowerBound, long upperBound)
public void intersect(Interval another)
another
- the other interval to calculate the intersection with.public void add(Interval another)
another
- the other interval to add into this intervalpublic long getLowerBound()
public void setLowerBound(long lowerBound)
public long getUpperBound()
public void setUpperBound(long upperBound)
Copyright © 2001–2020 JBoss by Red Hat. All rights reserved.