com.sun.jini.outrigger
Class TypeTree.RandomizedIterator

java.lang.Object
  extended by com.sun.jini.outrigger.TypeTree.TypeTreeIterator
      extended by com.sun.jini.outrigger.TypeTree.RandomizedIterator
All Implemented Interfaces:
Iterator
Enclosing class:
TypeTree

 class TypeTree.RandomizedIterator
extends TypeTree.TypeTreeIterator

This class implements a randomized iterator over the TypeTree. Given a className, it maintains a randomized list of subtypes for the given className, including the class itself.


Field Summary
 
Fields inherited from class com.sun.jini.outrigger.TypeTree.TypeTreeIterator
cursor, typearray
 
Constructor Summary
TypeTree.RandomizedIterator(String className)
          Create a new RandomizedIterator for the given class.
 
Method Summary
private  void init(String className)
          Set up this iterator to walk over the subtypes of this class, including the class itself.
private  void walkTree(Collection children, Collection list)
           
 
Methods inherited from class com.sun.jini.outrigger.TypeTree.TypeTreeIterator
hasNext, next, remove
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TypeTree.RandomizedIterator

TypeTree.RandomizedIterator(String className)
Create a new RandomizedIterator for the given class.

Method Detail

walkTree

private void walkTree(Collection children,
                      Collection list)

init

private void init(String className)
Set up this iterator to walk over the subtypes of this class, including the class itself. It then randomizes the list.



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