Class Edge

  • Direct Known Subclasses:
    BindingEdge, DependencyEdge

    public abstract class Edge
    extends Object
    Edge in a guice dependency graph.
    Since:
    4.0
    Author:
    bojand@google.com (Bojan Djordjevic)
    • Constructor Detail

    • Method Detail

      • getFromId

        public NodeId getFromId()
      • getToId

        public NodeId getToId()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • copy

        public abstract Edge copy​(NodeId fromId,
                                  NodeId toId)
        Returns a copy of the edge with new node IDs.
        Parameters:
        fromId - new ID of the 'from' node
        toId - new ID of the 'to' node
        Returns:
        copy of the edge with the new node IDs