Package org.djutils.immutablecollections
Class ImmutableIterator<E>
- java.lang.Object
 - 
- org.djutils.immutablecollections.ImmutableIterator<E>
 
 
- 
- Type Parameters:
 E- the element type
- All Implemented Interfaces:
 Iterator<E>
public class ImmutableIterator<E> extends Object implements Iterator<E>
An immutable iterator over elements, wrapping a "mutable" iterator. The default remove method from the interface will throw an exception.Copyright (c) 2016-2021 Delft University of Technology, Jaffalaan 5, 2628 BX Delft, the Netherlands. All rights reserved. See for project information https://djutils.org. The DJUTILS project is distributed under a three-clause BSD-style license, which can be found at https://djutils.org/docs/license.html.
- Author:
 - Alexander Verbraeck, Peter Knoppers
 
 
- 
- 
Constructor Summary
Constructors Constructor Description ImmutableIterator(Iterator<E> iterator) 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanhasNext()Enext()StringtoString()- 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait 
- 
Methods inherited from interface java.util.Iterator
forEachRemaining, remove 
 - 
 
 -