Class Edge

  • Direct Known Subclasses:
    BindingEdge, DependencyEdge

    public abstract class Edge
    extends java.lang.Object
    Edge in a guice dependency graph.
    Since:
    4.0
    • Constructor Detail

    • Method Detail

      • getFromId

        public NodeId getFromId()
      • getToId

        public NodeId getToId()
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.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