Class BlockId.Distance
- java.lang.Object
-
- ru.ispras.microtesk.test.template.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)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
int
getDown()
int
getTotal()
int
getUp()
int
hashCode()
java.lang.String
toString()
-
-
-
Method Detail
-
getUp
public int getUp()
-
getDown
public int getDown()
-
getTotal
public int getTotal()
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-