org.apache.commons.collections.primitives.decorators
Class UnmodifiableCharIterator

java.lang.Object
  extended by org.apache.commons.collections.primitives.decorators.UnmodifiableCharIterator
All Implemented Interfaces:
CharIterator

public final class UnmodifiableCharIterator
extends Object

Since:
Commons Primitives 1.0
Version:
$Revision: 480463 $ $Date: 2006-11-29 09:15:23 +0100(mer, 29 nov 2006) $
Author:
Rodney Waldhoff

Method Summary
protected  CharIterator getIterator()
           
 boolean hasNext()
          Returns true iff I have more elements.
 char next()
          Returns the next element in me.
 void remove()
          Removes from my underlying collection the last element returned by me (optional operation).
static CharIterator wrap(CharIterator iterator)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

remove

public void remove()
Description copied from interface: CharIterator
Removes from my underlying collection the last element returned by me (optional operation).


getIterator

protected CharIterator getIterator()

wrap

public static final CharIterator wrap(CharIterator iterator)

hasNext

public boolean hasNext()
Description copied from interface: CharIterator
Returns true iff I have more elements. (In other words, returns true iff a subsequent call to next will return an element rather than throwing an exception.)

Specified by:
hasNext in interface CharIterator
Returns:
true iff I have more elements

next

public char next()
Description copied from interface: CharIterator
Returns the next element in me.

Specified by:
next in interface CharIterator
Returns:
the next element in me


Copyright © 2002-2011 Apache Software Foundation. All Rights Reserved.