diva.util
Class UnitIterator

java.lang.Object
  extended by diva.util.IteratorAdapter
      extended by diva.util.UnitIterator
All Implemented Interfaces:
Iterator

public class UnitIterator
extends IteratorAdapter

An iterator over a single object.

Version:
$Revision: 1.6 $
Author:
John Reekie (johnr@eecs.berkeley.edu), Michael Shilman (michaels@eecs.berkeley.edu)

Constructor Summary
UnitIterator(Object item)
           
 
Method Summary
 boolean hasNext()
           
 Object next()
           
 
Methods inherited from class diva.util.IteratorAdapter
remove
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UnitIterator

public UnitIterator(Object item)
Method Detail

hasNext

public boolean hasNext()
Specified by:
hasNext in interface Iterator
Overrides:
hasNext in class IteratorAdapter

next

public Object next()
Specified by:
next in interface Iterator
Overrides:
next in class IteratorAdapter


Copyright © 2015 Central Laboratory of the Research Councils. All Rights Reserved.