Package EDU.purdue.cs.bloat.util
Class ImmutableIterator
- java.lang.Object
-
- EDU.purdue.cs.bloat.util.ImmutableIterator
-
- All Implemented Interfaces:
java.util.Iterator
public class ImmutableIterator extends java.lang.Object implements java.util.IteratorImmutableIterator is simply an iterator whose contents can not be changed. That is, the remove() method has no effect.
-
-
Constructor Summary
Constructors Constructor Description ImmutableIterator(java.util.Collection c)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanhasNext()java.lang.Objectnext()voidremove()
-