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 Details

    • BridgeTable

      public BridgeTable()
  • Method Details

    • addLink

      public void addLink(T parent, T child)
    • addLink

      public void addLink(Pair<T,T> link)
    • addLinks

      public void addLinks(Collection<Pair<T,T>> links)
    • removeLink

      public void removeLink(T parent, T child)
    • removeLink

      public void removeLink(Pair<T,T> link)
    • removeLinks

      public void removeLinks(Collection<Pair<T,T>> links)
    • getDescendants

      public HashSet<T> getDescendants(T node)
    • getDescendants

      public HashSet<T> getDescendants(T node, int position)
    • getDescendants

      public HashSet<T> getDescendants(T node, int start, int end)
    • getAncestors

      public HashSet<T> getAncestors(T node)
    • getAncestors

      public HashSet<T> getAncestors(T node, int position)
    • getAncestors

      public HashSet<T> getAncestors(T node, int start, int end)
    • size

      public int size()
    • keySet

      public Set<T> keySet()
      Returns:
      Set