org.openide.util.lookup
Class AbstractLookup.ReferenceIterator

java.lang.Object
  extended by org.openide.util.lookup.AbstractLookup.ReferenceIterator
Enclosing class:
AbstractLookup

static final class AbstractLookup.ReferenceIterator
extends java.lang.Object

Supporting class to iterate over linked list of ReferenceToResult Use:

  ReferenceIterator it = new ReferenceIterator (this.ref);
  while (it.next ()) {
    it.current (): // do some work
  }
  this.ref = it.first (); // remember the first one


Constructor Summary
AbstractLookup.ReferenceIterator(AbstractLookup.ReferenceToResult<?> first)
          Initializes the iterator with first reference.
 
Method Summary
 AbstractLookup.ReferenceToResult<?> current()
          Access to current reference.
 AbstractLookup.ReferenceToResult<?> first()
          Access to reference that is supposed to be the first one.
 boolean next()
          Moves the current to next possition
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractLookup.ReferenceIterator

public AbstractLookup.ReferenceIterator(AbstractLookup.ReferenceToResult<?> first)
Initializes the iterator with first reference.

Method Detail

next

public boolean next()
Moves the current to next possition


current

public AbstractLookup.ReferenceToResult<?> current()
Access to current reference.


first

public AbstractLookup.ReferenceToResult<?> first()
Access to reference that is supposed to be the first one.