class TypeTree extends Object
OutriggerServerImpl
Modifier and Type | Class and Description |
---|---|
private static class |
TypeTree.RandomizedIterator
This class implements a randomized iterator over the
TypeTree . |
private static class |
TypeTree.TypeTreeIterator<T>
An iterator that will walk through a list of known types.
|
Modifier and Type | Field and Description |
---|---|
private static Random |
numgen
A generator used to randomize the order of iterator returns
|
private static String |
ROOT
Name of the root bucket of the type tree
|
private java.util.concurrent.ConcurrentMap<String,Set<String>> |
subclasses
For each type, a set of known subtypes.
|
Constructor and Description |
---|
TypeTree() |
Modifier and Type | Method and Description |
---|---|
private boolean |
addKnown(String superclass,
String subclass)
Add the subclass to the list of known subclasses of this superclass.
|
(package private) void |
addTypes(EntryRep bits)
Update the type tree with the given bits.
|
private Set<String> |
classSet(String whichClass)
Return the set of subclasses for the given class.
|
(package private) Iterator<String> |
subTypes(String className)
Return an iterator over the subtypes of the given class
(including the type itself).
|
private final java.util.concurrent.ConcurrentMap<String,Set<String>> subclasses
private static final Random numgen
private static final String ROOT
private Set<String> classSet(String whichClass)
Iterator<String> subTypes(String className)
void addTypes(EntryRep bits)
Copyright 2007-2013, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.