Package gw.util.cache
Class FqnCacheNode<K>
- java.lang.Object
-
- gw.util.cache.FqnCacheNode<K>
-
public class FqnCacheNode<K> extends Object
-
-
Constructor Summary
Constructors Constructor Description FqnCacheNode(String text, FqnCacheNode<K> parent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clear()
void
collectNames(Set<String> names, String s)
void
delete()
FqnCacheNode<K>
getChild(String segment)
Collection<FqnCacheNode<K>>
getChildren()
String
getFqn()
String
getName()
FqnCacheNode<K>
getOrCreateChild(String segment)
K
getUserData()
boolean
isLeaf()
void
setUserData(K userData)
String
toString()
boolean
visitBreadthFirst(Predicate<K> visitor)
boolean
visitDepthFirst(Predicate<K> visitor)
boolean
visitNodeBreadthFirst(Predicate<FqnCacheNode> visitor)
boolean
visitNodeDepthFirst(Predicate<FqnCacheNode> visitor)
-
-
-
Constructor Detail
-
FqnCacheNode
public FqnCacheNode(String text, FqnCacheNode<K> parent)
-
-
Method Detail
-
getChild
public final FqnCacheNode<K> getChild(String segment)
-
clear
public final void clear()
-
getOrCreateChild
public FqnCacheNode<K> getOrCreateChild(String segment)
-
delete
public final void delete()
-
getUserData
public final K getUserData()
-
setUserData
public final void setUserData(K userData)
-
isLeaf
public final boolean isLeaf()
-
getChildren
public final Collection<FqnCacheNode<K>> getChildren()
-
visitNodeDepthFirst
public final boolean visitNodeDepthFirst(Predicate<FqnCacheNode> visitor)
-
visitNodeBreadthFirst
public final boolean visitNodeBreadthFirst(Predicate<FqnCacheNode> visitor)
-
getName
public final String getName()
-
getFqn
public final String getFqn()
-
-