net.von_gagern.martin.confoo.mesh
Class AbstractMeshIterator<V>

java.lang.Object
  extended by net.von_gagern.martin.confoo.mesh.AbstractMeshIterator<V>
All Implemented Interfaces:
Iterator<CorneredTriangle<V>>, MeshIterator<V>

public abstract class AbstractMeshIterator<V>
extends Object
implements MeshIterator<V>

Abstract base class for mesh iterators.

This class throws an UnsupportedOperationException when an application tries to modify the mesh through the remove() method. It is thus a useful base class for read-only access to meshes. Implementors yet have to implement hasNext() and next().

Since:
1.0
Author:
Martin von Gagern

Constructor Summary
AbstractMeshIterator()
           
 
Method Summary
 void remove()
          Throws UnsupportedOperationException
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Iterator
hasNext, next
 

Constructor Detail

AbstractMeshIterator

public AbstractMeshIterator()
Method Detail

remove

public void remove()
Throws UnsupportedOperationException

Specified by:
remove in interface Iterator<CorneredTriangle<V>>
Throws:
UnsupportedOperationException - unless overridden


Copyright © 2008 Martin von Gagern. All Rights Reserved.