@Override
  public int hashCode() {
    // Assuming x,y rarely exceed 4096 pixels, shifting
    // by 12 should provide a good hash value.
    return x << 12 + y;
  }
A copy of java.awt.Point, to remove dependency on awt.
selendroid-server/src/main/java/io/selendroid/server/android/internal/Point.java