Package manifold.api.util.cache
Class FqnCacheNode<K>
- java.lang.Object
-
- manifold.api.util.cache.FqnCacheNode<K>
-
-
Constructor Summary
Constructors Constructor Description FqnCacheNode(String text, FqnCacheNode<K> parent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()protected voidcollectNames(Set<String> names, String s)voiddelete()FqnCacheNode<K>getChild(String segment)Collection<FqnCacheNode<K>>getChildren()StringgetFqn()StringgetName()FqnCacheNode<K>getOrCreateChild(String child)FqnCacheNode<K>getOrCreateChild(String child, K userData)FqnCacheNode<K>getParent()KgetUserData()protected voidinvalidate()booleanisEmpty()booleanisLeaf()booleanisRootVisible()voidsetUserData(K userData)StringtoString()booleanvisitDepthFirst(Predicate<K> visitor)booleanvisitNodeDepthFirst(Predicate<FqnCacheNode> visitor)
-
-
-
Constructor Detail
-
FqnCacheNode
public FqnCacheNode(String text, FqnCacheNode<K> parent)
-
-
Method Detail
-
getChild
public final FqnCacheNode<K> getChild(String segment)
-
getParent
public FqnCacheNode<K> getParent()
-
clear
public void clear()
-
invalidate
protected void invalidate()
-
getOrCreateChild
public FqnCacheNode<K> getOrCreateChild(String child)
-
getOrCreateChild
public FqnCacheNode<K> getOrCreateChild(String child, K userData)
-
delete
public final void delete()
-
getUserData
public final K getUserData()
-
setUserData
public final void setUserData(K userData)
-
isEmpty
public final boolean isEmpty()
-
isLeaf
public final boolean isLeaf()
-
getChildren
public final Collection<FqnCacheNode<K>> getChildren()
-
visitNodeDepthFirst
public final boolean visitNodeDepthFirst(Predicate<FqnCacheNode> visitor)
-
getName
public final String getName()
-
getFqn
public final String getFqn()
-
isRootVisible
public boolean isRootVisible()
-
-