Class BlockId.Distance

  • Enclosing class:
    BlockId

    public static final class BlockId.Distance
    extends java.lang.Object
    The Distance class describe a distance between blocks. I.e. the path from one block to another including directions. First we go up (by the specified number of steps, if needed) and then go down (by the specified number of steps, if needed).
    • Constructor Summary

      Constructors 
      Constructor Description
      Distance​(int up, int down)  
    • Constructor Detail

      • Distance

        public Distance​(int up,
                        int down)
    • Method Detail

      • getUp

        public int getUp()
      • getDown

        public int getDown()
      • getTotal

        public int getTotal()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

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

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object