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