com.sun.jini.reggie
Class RegistrarImpl.ItemIter

java.lang.Object
  extended by com.sun.jini.reggie.RegistrarImpl.ItemIter
Direct Known Subclasses:
RegistrarImpl.AllItemIter, RegistrarImpl.AttrItemIter, RegistrarImpl.ClassItemIter, RegistrarImpl.IDItemIter, RegistrarImpl.SvcIterator
Enclosing class:
RegistrarImpl

private abstract class RegistrarImpl.ItemIter
extends Object

Base class for iterating over all Items that match a Template.


Field Summary
 boolean dupsPossible
          True means duplicate items are possible
 long now
          Current time
protected  RegistrarImpl.SvcReg reg
          Next item to return
protected  Template tmpl
          Template to match
 
Constructor Summary
protected RegistrarImpl.ItemIter(Template tmpl)
          Subclass constructors must initialize reg
 
Method Summary
 boolean hasNext()
          Returns true if the iteration has more elements.
 Item next()
          Returns the next element in the iteration as an Item.
 RegistrarImpl.SvcReg nextReg()
          Returns the next element in the iteration as a SvcReg.
protected abstract  void step()
          Set reg to the next matching element, or null if none
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

now

public final long now
Current time


dupsPossible

public boolean dupsPossible
True means duplicate items are possible


tmpl

protected final Template tmpl
Template to match


reg

protected RegistrarImpl.SvcReg reg
Next item to return

Constructor Detail

RegistrarImpl.ItemIter

protected RegistrarImpl.ItemIter(Template tmpl)
Subclass constructors must initialize reg

Method Detail

hasNext

public boolean hasNext()
Returns true if the iteration has more elements.


next

public Item next()
Returns the next element in the iteration as an Item.


nextReg

public RegistrarImpl.SvcReg nextReg()
Returns the next element in the iteration as a SvcReg.


step

protected abstract void step()
Set reg to the next matching element, or null if none



Copyright 2007-2010, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.