public class FqnCacheNode<K> extends Object
| Constructor and Description |
|---|
FqnCacheNode(String text,
FqnCacheNode<K> parent) |
| Modifier and Type | Method and 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) |
public FqnCacheNode(String text, FqnCacheNode<K> parent)
public final FqnCacheNode<K> getChild(String segment)
public final void clear()
public FqnCacheNode<K> getOrCreateChild(String segment)
public final void delete()
public final K getUserData()
public final void setUserData(K userData)
public final boolean isLeaf()
public final Collection<FqnCacheNode<K>> getChildren()
public final boolean visitNodeDepthFirst(Predicate<FqnCacheNode> visitor)
public final boolean visitNodeBreadthFirst(Predicate<FqnCacheNode> visitor)
public final String getName()
public final String getFqn()
Copyright © 2017. All rights reserved.