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 voidaddLink(Pair<T,T> link)voidaddLink(T parent, T child)voidaddLinks(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()voidremoveLink(Pair<T,T> link)voidremoveLink(T parent, T child)voidremoveLinks(Collection<Pair<T,T>> links)intsize()
-
-
-
Method Detail
-
addLinks
public void addLinks(Collection<Pair<T,T>> links)
-
removeLinks
public void removeLinks(Collection<Pair<T,T>> links)
-
size
public int size()
-
-