public class IntBlockSet extends AbstractIntSet implements IntSet
Constructor and Description |
---|
IntBlockSet(int startPoint,
int endPoint)
Create an IntRangeSet given the start point and end point of the integer range.
|
Modifier and Type | Method and Description |
---|---|
boolean |
add(int value)
Add an integer to the set
|
void |
clear()
Clear the contents of the IntSet (making it an empty set)
|
boolean |
contains(int value)
Determine whether a particular integer is present in the set
|
IntSet |
copy()
Create a copy of this IntSet that leaves the original unchanged.
|
boolean |
equals(Object other)
Test whether this set has exactly the same members as another set.
|
int |
getEndPoint()
Get the end point of the range
|
int |
getStartPoint()
Get the start point of the range
|
int |
hashCode()
Construct a hash key that supports the equals() test
|
boolean |
isEmpty()
Determine if the set is empty
|
IntIterator |
iterator()
Get an iterator over the values
|
IntSet |
mutableCopy()
Create a copy of this IntSet that contains the same set of integers.
|
boolean |
remove(int value)
Remove an integer from the set
|
int |
size()
Get the number of integers in the set
|
String |
toString() |
containsAll, except, intersect, union
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
containsAll, except, intersect, union
public IntBlockSet(int startPoint, int endPoint)
startPoint
- the start point of the integer rangeendPoint
- the end point of the integer rangeIllegalArgumentException
- if the two arrays are different lengths. Other error conditions
in the input are not currently detected.public IntSet copy()
IntSet
public IntSet mutableCopy()
IntSet
mutableCopy
in interface IntSet
public int size()
IntSet
public boolean isEmpty()
IntSet
public boolean contains(int value)
IntSet
public boolean remove(int value)
IntSet
public void clear()
IntSet
public boolean add(int value)
public IntIterator iterator()
public boolean equals(Object other)
public int hashCode()
public int getStartPoint()
public int getEndPoint()
Copyright (c) 2004-2014 Saxonica Limited. All rights reserved.