Class Pair

  • All Implemented Interfaces:
    java.lang.Comparable<Pair>

    public class Pair
    extends java.lang.Object
    implements java.lang.Comparable<Pair>
    Java note: at the "creation" of each node, a random key is given to that node, and that's what we sort from.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      int proxyIdA  
      int proxyIdB  
    • Constructor Summary

      Constructors 
      Constructor Description
      Pair()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int compareTo​(Pair pair2)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • proxyIdA

        public int proxyIdA
      • proxyIdB

        public int proxyIdB
    • Constructor Detail

      • Pair

        public Pair()
    • Method Detail

      • compareTo

        public int compareTo​(Pair pair2)
        Specified by:
        compareTo in interface java.lang.Comparable<Pair>