public abstract class AbstractCodedHierarchyImpl<T> extends AbstractBitwiseHierarchyImpl<T,HierNode<T>> implements CodedHierarchy<T>, Externalizable
AbstractBitwiseHierarchyImpl.HierCodeComparator
fixedRoot, line
Constructor and Description |
---|
AbstractCodedHierarchyImpl() |
Modifier and Type | Method and Description |
---|---|
void |
addMember(T val,
BitSet key) |
protected Set<HierNode<T>> |
ancestorNodes(HierNode<T> x) |
Collection<T> |
ancestors(BitSet key) |
Collection<T> |
ancestors(T x) |
protected Collection<T> |
ancestorValues(HierNode<T> node) |
Collection<T> |
children(BitSet key) |
Collection<T> |
children(T x) |
protected Collection<T> |
childrenValues(HierNode<T> node) |
protected Set<HierNode<T>> |
descendantNodes(HierNode<T> y) |
Collection<T> |
descendants(BitSet key) |
Collection<T> |
descendants(T y) |
protected Collection<T> |
descendantValues(HierNode<T> node) |
protected abstract HierNode<T> |
getNode(T name) |
protected Collection<T> |
parentValues(HierNode<T> node) |
void |
removeMember(BitSet key) |
void |
removeMember(T val) |
add, clear, contains, getCode, getMember, getNodeByKey, getNodes, getSortedMap, getSortedMembers, hasKey, immediateChildren, immediateParents, isEmpty, joinCode, jointMembersCode, lowerBorder, lowerDescendants, meetCode, metMembersCode, numBit, parents, parents, readExternal, remove, size, stringToBitSet, superset, supersetOrEqualset, toBinaryString, toBinaryString, upperAncestors, upperBorder, writeExternal
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getCode, getMember, getSortedMap, getSortedMembers, hasKey, immediateChildren, immediateParents, joinCode, jointMembersCode, lowerBorder, lowerDescendants, meetCode, metMembersCode, parents, parents, size, upperAncestors, upperBorder
readExternal, writeExternal
protected abstract HierNode<T> getNode(T name)
getNode
in class AbstractBitwiseHierarchyImpl<T,HierNode<T>>
public void addMember(T val, BitSet key)
addMember
in interface CodedHierarchy<T>
public void removeMember(T val)
removeMember
in interface CodedHierarchy<T>
removeMember
in class AbstractBitwiseHierarchyImpl<T,HierNode<T>>
public void removeMember(BitSet key)
removeMember
in interface CodedHierarchy<T>
removeMember
in class AbstractBitwiseHierarchyImpl<T,HierNode<T>>
protected Collection<T> parentValues(HierNode<T> node)
parentValues
in class AbstractBitwiseHierarchyImpl<T,HierNode<T>>
public Collection<T> ancestors(T x)
ancestors
in interface CodedHierarchy<T>
public Collection<T> ancestors(BitSet key)
ancestors
in interface CodedHierarchy<T>
protected Collection<T> ancestorValues(HierNode<T> node)
protected Collection<T> childrenValues(HierNode<T> node)
public Collection<T> children(T x)
children
in interface CodedHierarchy<T>
public Collection<T> children(BitSet key)
children
in interface CodedHierarchy<T>
protected Collection<T> descendantValues(HierNode<T> node)
public Collection<T> descendants(T y)
descendants
in interface CodedHierarchy<T>
public Collection<T> descendants(BitSet key)
descendants
in interface CodedHierarchy<T>
Copyright © 2001–2019 JBoss by Red Hat. All rights reserved.