public interface IrDomain
Modifier and Type | Method and Description |
---|---|
boolean |
contains(int value)
Checks if a value is within this domain.
|
int |
getHighBound()
Returns the largest integer contained in this domain.
|
int |
getLowBound()
Returns the smallest integer contained in this domain.
|
int[] |
getValues()
Returns all the values contained in this domain.
|
boolean |
isBounded()
Checks if this domain is defined as a lower and upper bound.
|
boolean |
isEmpty()
Checks if this domain contains any values.
|
gnu.trove.iterator.TIntIterator |
iterator()
Iterate over the domain in increasing order.
|
gnu.trove.iterator.TIntIterator |
iterator(boolean increasing)
Iterate over the domain in the specified order.
|
int |
size()
Returns how many values are contained in this domain.
|
void |
transferTo(gnu.trove.TIntCollection collection)
Put the contents of this domain inside the collection.
|
boolean isBounded()
true
if and only if this domain is a contiguous interval,
false
otherwiseboolean contains(int value)
value
- test this valuetrue
if and only if this domain contains the value
,
false
otherwiseint getLowBound()
int getHighBound()
boolean isEmpty()
true
if and only if the size of this domain is zero,
false
otherwiseint size()
int[] getValues()
gnu.trove.iterator.TIntIterator iterator()
gnu.trove.iterator.TIntIterator iterator(boolean increasing)
increasing
- increasing or decreasing ordervoid transferTo(gnu.trove.TIntCollection collection)
collection
- the collectionCopyright © 2013. All Rights Reserved.