public class Bounds extends java.lang.Object implements java.io.Serializable, java.lang.Comparable<Bounds>
| Constructor and Description |
|---|
Bounds(long min,
long max) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Bounds o) |
boolean |
equals(java.lang.Object obj) |
int |
hashCode() |
Bounds |
intersect(Bounds b)
Get intersection with another
Bounds. |
Bounds |
intersectStrict(Bounds b)
Get intersection with another
Bounds. |
boolean |
isIntersecting(Bounds b)
|
boolean |
isSingleton() |
java.lang.String |
toString() |
static Bounds |
union(Bounds... b) |
public boolean isSingleton()
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic final Bounds intersectStrict(Bounds b)
Bounds.
This version treats intervals [n,n] as empty, which is necessary for
intersections in scheduling where "a meets b" should not create a conflict.b - The Bounds object to intersect this with.true is there is a non-empty intersection, null otherwise.public boolean isIntersecting(Bounds b)
public final Bounds intersect(Bounds b)
Bounds.b - The Bounds object to intersect this with.true is there is a non-empty intersection, null otherwise.