package com.artifex.mupdf.fitz;

public final class Location
{
	public final int chapter;
	public final int page;
	public final float x, y;
	public Location(int chapter, int page) {
		this.chapter = chapter;
		this.page = page;
		this.x = this.y = 0;
	}
	public Location(int chapter, int page, float x, float y) {
		this.chapter = chapter;
		this.page = page;
		this.x = x;
		this.y = y;
	}
}

@@ -133,16 +133,17 @@
 t x, y;%0A
+%0A
 %09public 
@@ -248,16 +248,17 @@
 = 0;%0A%09%7D%0A
+%0A
 %09public 
@@ -369,16 +369,16 @@
 .x = x;%0A
-
 %09%09this.y
@@ -385,11 +385,258 @@
  = y;%0A%09%7D
+%0A%0A%09public boolean equals(Object obj) %7B%0A%09%09if (!(obj instanceof Location))%0A%09%09%09return false;%0A%0A%09%09Location other = (Location) obj;%0A%0A%09%09return this.chapter == other.chapter &&%0A%09%09%09this.page == other.page &&%0A%09%09%09this.x == other.x &&%0A%09%09%09this.y == other.y;%0A%09%7D
 %0A%7D%0A

Allow for comparing document locations.