private static class TypeTree.RandomizedIterator extends TypeTree.TypeTreeIterator<String>
TypeTree
. Given a className
, it
maintains a randomized list of subtypes for the given
className
, including the class itself.cursor, typearray
Constructor and Description |
---|
RandomizedIterator(String className,
TypeTree tree)
Create a new
RandomizedIterator for the given
class. |
Modifier and Type | Method and Description |
---|---|
private static String[] |
init(String className,
TypeTree tree)
Set up this iterator to walk over the subtypes of this class,
including the class itself.
|
private static void |
walkTree(Collection<String> children,
Collection<String> list,
TypeTree tree) |
hasNext, next, remove
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining
private static void walkTree(Collection<String> children, Collection<String> list, TypeTree tree)
Copyright 2007-2013, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.