xxl.cursors
Class UnmodifiableCursor

java.lang.Object
  |
  +--xxl.cursors.DecoratorCursor
        |
        +--xxl.cursors.UnmodifiableCursor

public class UnmodifiableCursor
extends DecoratorCursor

This class decorates a Cursor by preventing calls to remove and update.


Fields inherited from class xxl.cursors.DecoratorCursor
cursor
 
Constructor Summary
UnmodifiableCursor(java.util.Iterator iterator)
          Wraps the given iterator by bypaasing all method calls to it.
 
Method Summary
 void remove()
          Implemented by throwing an UnsupportedOperationException.
 void update(java.lang.Object object)
          Implemented by throwing an UnsupportedOperationException.
 
Methods inherited from class xxl.cursors.DecoratorCursor
close, hasNext, next, peek, reset, supportsPeek
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UnmodifiableCursor

public UnmodifiableCursor(java.util.Iterator iterator)
Wraps the given iterator by bypaasing all method calls to it.
Parameters:
iterator - The iterator to be decorated.
Method Detail

remove

public void remove()
            throws java.lang.UnsupportedOperationException
Implemented by throwing an UnsupportedOperationException.
Overrides:
remove in class DecoratorCursor

update

public void update(java.lang.Object object)
            throws java.lang.UnsupportedOperationException
Implemented by throwing an UnsupportedOperationException.
Overrides:
update in class DecoratorCursor