T - the value typepublic class DependencyTreeCache<T> extends Object implements Serializable
For internal use only. May be renamed or removed in a future release.
| Constructor and Description |
|---|
DependencyTreeCache(SerializableFunction<T,Collection<T>> dependencyParser)
Creates a dependency cache with the given dependency parser.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clears all the contents of the cache.
|
Set<T> |
getDependencies(T node)
Collects all transitive dependencies of the given node, including the
node itself.
|
public DependencyTreeCache(SerializableFunction<T,Collection<T>> dependencyParser)
dependencyParser - a potentially slow callback function that finds the direct
dependencies for any given valuepublic Set<T> getDependencies(T node)
node - the node for which to collect dependenciespublic void clear()
Copyright © 2021. All rights reserved.