public static class IntegerInterval.Set
extends java.lang.Object
Constructor and Description |
---|
Set() |
Modifier and Type | Method and Description |
---|---|
void |
add(int start,
int end)
Adds an interval to the set, performing the necessary normalization.
|
boolean |
covers(IntegerInterval iv)
Returns true if the set completely covers the given interval.
|
boolean |
covers(int start,
int end)
Returns true if the set completely covers the given interval.
|
boolean |
equals(java.lang.Object obj) |
int |
hashCode() |
java.util.Collection<IntegerInterval> |
intervals() |
int |
lowerBound()
Returns a lower bound for the whole set.
|
java.lang.String |
toString() |
int |
upperBound()
Returns an upper bound for the whole set.
|
public void add(int start, int end)
public boolean covers(IntegerInterval iv)
public boolean covers(int start, int end)
public int lowerBound()
public int upperBound()
public java.util.Collection<IntegerInterval> intervals()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2021 The Apache Software Foundation