Package org.alfresco.util
Class BridgeTable<T>
- java.lang.Object
-
- org.alfresco.util.BridgeTable<T>
-
public class BridgeTable<T> extends java.lang.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(java.util.Collection<Pair<T,T>> links)
java.util.HashSet<T>
getAncestors(T node)
java.util.HashSet<T>
getAncestors(T node, int position)
java.util.HashSet<T>
getAncestors(T node, int start, int end)
java.util.HashSet<T>
getDescendants(T node)
java.util.HashSet<T>
getDescendants(T node, int position)
java.util.HashSet<T>
getDescendants(T node, int start, int end)
java.util.Set<T>
keySet()
void
removeLink(Pair<T,T> link)
void
removeLink(T parent, T child)
void
removeLinks(java.util.Collection<Pair<T,T>> links)
int
size()
-
-
-
Method Detail
-
size
public int size()
-
keySet
public java.util.Set<T> keySet()
- Returns:
- Set
-
-