public interface AbstractCodedHierarchy<T>
Modifier and Type | Method and Description |
---|---|
void |
addMember(T val,
BitSet key) |
BitSet |
getCode(T val) |
T |
getMember(BitSet key) |
Map<T,BitSet> |
getSortedMap() |
List<T> |
getSortedMembers() |
boolean |
hasKey(BitSet key) |
Collection<T> |
immediateChildren(BitSet key)
* Return the "ceiling" of the key's descendants, excluding the element whose code is key, if any
|
Collection<T> |
immediateParents(BitSet key)
Return the "floor" of the key's ancetsors, down to and excluding the element whose code is key
|
BitSet |
joinCode(Collection<BitSet> codes) |
BitSet |
jointMembersCode(Collection<T> vals) |
Collection<T> |
lowerBorder(BitSet key)
Return the "ceiling" of the key's descendants, up to and including the element whose code is key
|
Collection<T> |
lowerDescendants(BitSet key)
Returns all elements whose code is a descendant of key
|
BitSet |
meetCode(Collection<BitSet> codes) |
BitSet |
metMembersCode(Collection<T> vals) |
Collection<T> |
parents(BitSet x) |
Collection<T> |
parents(T x) |
void |
removeMember(BitSet key) |
void |
removeMember(T val) |
int |
size() |
Collection<T> |
upperAncestors(BitSet key)
Returns all elements whose code is an ancestor of key
|
Collection<T> |
upperBorder(BitSet key)
Return the "floor" of the key's ancestors, down to and including the element whose code is key, if any
|
int size()
void removeMember(T val)
void removeMember(BitSet key)
BitSet metMembersCode(Collection<T> vals)
BitSet jointMembersCode(Collection<T> vals)
BitSet meetCode(Collection<BitSet> codes)
BitSet joinCode(Collection<BitSet> codes)
boolean hasKey(BitSet key)
Collection<T> lowerBorder(BitSet key)
key
- a key, possibly the join of a number of member keysCollection<T> immediateChildren(BitSet key)
key
- a key, possibly the join of a number of member keysCollection<T> lowerDescendants(BitSet key)
key
- Collection<T> parents(T x)
Collection<T> parents(BitSet x)
Collection<T> upperBorder(BitSet key)
key
- a key, possibly the meet of a number of member keysCollection<T> immediateParents(BitSet key)
key
- a key, possibly the meet of a number of member keysCollection<T> upperAncestors(BitSet key)
key
- Copyright © 2001–2016 JBoss by Red Hat. All rights reserved.