| Constructor and Description |
|---|
WeakFqnCache() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(String fqn) |
void |
add(String fqn,
T userData) |
void |
clear() |
boolean |
contains(String fqn) |
T |
get(String fqn) |
Set<String> |
getFqns() |
FqnCacheNode<WeakReference<T>> |
getNode(String fqn) |
boolean |
remove(String fqn) |
void |
remove(String[] fqns) |
void |
visitBreadthFirst(Predicate<T> visitor) |
void |
visitDepthFirst(Predicate<T> visitor) |
void |
visitNodeDepthFirst(Predicate<FqnCacheNode> visitor) |
public FqnCacheNode<WeakReference<T>> getNode(String fqn)
public void visitDepthFirst(Predicate<T> visitor)
visitDepthFirst in interface IFqnCache<T>visitor - returns whether or not to terminate visitingpublic void visitNodeDepthFirst(Predicate<FqnCacheNode> visitor)
visitNodeDepthFirst in interface IFqnCache<T>public void visitBreadthFirst(Predicate<T> visitor)
visitBreadthFirst in interface IFqnCache<T>visitor - returns whether or not to continue visiting children of TCopyright © 2021. All rights reserved.