public class IntegerInterval
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
IntegerInterval.Set
A mutable set of closed integer intervals, stored in normalized form (i.e.
|
Constructor and Description |
---|
IntegerInterval(IntegerInterval src) |
IntegerInterval(int lower,
int upper) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
void |
expandToCover(int value)
Expands the interval to cover the given value by extending one of its sides if necessary.
|
int |
hashCode() |
int |
lower() |
java.lang.String |
toString() |
int |
upper() |
public IntegerInterval(int lower, int upper)
public IntegerInterval(IntegerInterval src)
public int lower()
public int upper()
public void expandToCover(int value)
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 © 2017 The Apache Software Foundation