Class TempNodeCache.NodePair

  • Enclosing class:
    TempNodeCache

    public static class TempNodeCache.NodePair
    extends java.lang.Object
    Inner class used to hold and hash a node pair.
    • Constructor Summary

      Constructors 
      Constructor Description
      NodePair​(Node first, Node second)
      Constructor
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object o)
      Equality of each component.
      Node getFirst()
      Return the first node in the pair.
      Node getSecond()
      Return the second node in the pair.
      int hashCode()
      Simple combined hashcode.
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • NodePair

        public NodePair​(Node first,
                        Node second)
        Constructor
    • Method Detail

      • getFirst

        public Node getFirst()
        Return the first node in the pair.
      • getSecond

        public Node getSecond()
        Return the second node in the pair.
      • equals

        public boolean equals​(java.lang.Object o)
        Equality of each component.
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Simple combined hashcode.
        Overrides:
        hashCode in class java.lang.Object