GeoId implements Serializable, Comparable<GeoId> { @Pure public UUID toUUID() { return UUID.nameUUIDFromBytes(this.id.getBytes()); } GeoId(String id);   GeoId(double lowerx, double lowery, double upperx, double uppery, String id); @Pure static GeoId valueOf(String geoId); @Override @Pure String toString(); @Pure UUID toUUID(); @Pure @Override int compareTo(GeoId obj); @Pure @Override boolean equals(Object obj); @Pure @Override int hashCode(); @Pure Rectangle2d toBounds2D(); @Pure String getInternalId();  }
@Test public void testToUUID() { assertEquals(UUID.nameUUIDFromBytes(makeStringId(this.loc11).getBytes()), this.id11.toUUID()); assertEquals(UUID.nameUUIDFromBytes(makeStringId(this.loc12).getBytes()), this.id12.toUUID()); assertEquals(UUID.nameUUIDFromBytes(makeStringId(this.loc13).getBytes()), this.id13.toUUID()); assertEquals(UUID.nameUUIDFromBytes(makeStringId(this.loc21).getBytes()), this.id21.toUUID()); assertEquals(UUID.nameUUIDFromBytes(makeStringId(this.loc22).getBytes()), this.id22.toUUID()); assertEquals(UUID.nameUUIDFromBytes(makeStringId(this.loc23).getBytes()), this.id23.toUUID()); assertEquals(this.id11.toUUID(), this.id11.toUUID()); assertEquals(this.id12.toUUID(), this.id11.toUUID()); assertNotEquals(this.id13.toUUID(), this.id11.toUUID()); assertNotEquals(this.id21.toUUID(), this.id11.toUUID()); assertNotEquals(this.id22.toUUID(), this.id11.toUUID()); assertNotEquals(this.id23.toUUID(), this.id11.toUUID()); assertEquals(this.id11.toUUID(), this.id12.toUUID()); assertEquals(this.id12.toUUID(), this.id12.toUUID()); assertNotEquals(this.id13.toUUID(), this.id12.toUUID()); assertNotEquals(this.id21.toUUID(), this.id12.toUUID()); assertNotEquals(this.id22.toUUID(), this.id12.toUUID()); assertNotEquals(this.id23.toUUID(), this.id12.toUUID()); assertNotEquals(this.id11.toUUID(), this.id13.toUUID()); assertNotEquals(this.id12.toUUID(), this.id13.toUUID()); assertEquals(this.id13.toUUID(), this.id13.toUUID()); assertNotEquals(this.id21.toUUID(), this.id13.toUUID()); assertNotEquals(this.id22.toUUID(), this.id13.toUUID()); assertNotEquals(this.id23.toUUID(), this.id13.toUUID()); assertNotEquals(this.id11.toUUID(), this.id21.toUUID()); assertNotEquals(this.id12.toUUID(), this.id21.toUUID()); assertNotEquals(this.id13.toUUID(), this.id21.toUUID()); assertEquals(this.id21.toUUID(), this.id21.toUUID()); assertEquals(this.id22.toUUID(), this.id21.toUUID()); assertNotEquals(this.id23.toUUID(), this.id21.toUUID()); assertNotEquals(this.id11.toUUID(), this.id22.toUUID()); assertNotEquals(this.id12.toUUID(), this.id22.toUUID()); assertNotEquals(this.id13.toUUID(), this.id22.toUUID()); assertEquals(this.id21.toUUID(), this.id22.toUUID()); assertEquals(this.id22.toUUID(), this.id22.toUUID()); assertNotEquals(this.id23.toUUID(), this.id22.toUUID()); assertNotEquals(this.id11.toUUID(), this.id23.toUUID()); assertNotEquals(this.id12.toUUID(), this.id23.toUUID()); assertNotEquals(this.id13.toUUID(), this.id23.toUUID()); assertNotEquals(this.id21.toUUID(), this.id23.toUUID()); assertNotEquals(this.id22.toUUID(), this.id23.toUUID()); assertEquals(this.id23.toUUID(), this.id23.toUUID()); }