Package com.ibm.wala.util.collections
Class CompoundIntIterator
- java.lang.Object
-
- com.ibm.wala.util.collections.CompoundIntIterator
-
- All Implemented Interfaces:
IntIterator
public class CompoundIntIterator extends java.lang.Object implements IntIterator
An Iterator which provides a concatenation of two IntIterators.
-
-
Constructor Summary
Constructors Constructor Description CompoundIntIterator(IntIterator A, IntIterator B)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
hashCode()
boolean
hasNext()
int
next()
-
-
-
Constructor Detail
-
CompoundIntIterator
public CompoundIntIterator(IntIterator A, IntIterator B)
- Parameters:
A
- the first iterator in the concatenated resultB
- the second iterator in the concatenated result
-
-
Method Detail
-
hasNext
public boolean hasNext()
- Specified by:
hasNext
in interfaceIntIterator
- Returns:
- true iff this iterator has a next element
-
next
public int next()
- Specified by:
next
in interfaceIntIterator
- Returns:
- next integer in the iteration
-
hashCode
public int hashCode() throws UnimplementedError
- Overrides:
hashCode
in classjava.lang.Object
- Throws:
UnimplementedError
-
-