Package org.alfresco.util
Class BridgeTable<T>
- java.lang.Object
-
- org.alfresco.util.BridgeTable<T>
-
public class BridgeTable<T> extends Object
Generic bridge table support with optional reference counting to allow multiple membership for an object via several relationships.- Author:
- Andy
-
-
Constructor Summary
Constructors Constructor Description BridgeTable()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addLink(Pair<T,T> link)
void
addLink(T parent, T child)
void
addLinks(Collection<Pair<T,T>> links)
HashSet<T>
getAncestors(T node)
HashSet<T>
getAncestors(T node, int position)
HashSet<T>
getAncestors(T node, int start, int end)
HashSet<T>
getDescendants(T node)
HashSet<T>
getDescendants(T node, int position)
HashSet<T>
getDescendants(T node, int start, int end)
Set<T>
keySet()
void
removeLink(Pair<T,T> link)
void
removeLink(T parent, T child)
void
removeLinks(Collection<Pair<T,T>> links)
int
size()
-
-
-
Method Detail
-
addLinks
public void addLinks(Collection<Pair<T,T>> links)
-
removeLinks
public void removeLinks(Collection<Pair<T,T>> links)
-
size
public int size()
-
-