com.sun.jini.outrigger
Class TypeTree.RandomizedIterator
java.lang.Object
com.sun.jini.outrigger.TypeTree.TypeTreeIterator
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.
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TypeTree.RandomizedIterator
TypeTree.RandomizedIterator(String className)
- Create a new
RandomizedIterator
for the given
class.
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.