@Test public void testEquals() { assertFalse(position1.equals(null)); assertEquals(position1, position1); assertFalse(position1.equals(position2)); }
@Override public boolean equals(final Object object) { if (object == this) { return true; } if (object instanceof DefaultPosition) { final DefaultPosition that = (DefaultPosition) object; return Utilities.equals(this.position, that.position); } return false; }
DefaultPosition implements Position { @Override public boolean equals(final Object object) { if (object == this) { return true; } if (object instanceof DefaultPosition) { final DefaultPosition that = (DefaultPosition) object; return Utilities.equals(this.position, that.position); } return false; } }
DefaultPosition implements Position { @Override public boolean equals(final Object object) { if (object == this) { return true; } if (object instanceof DefaultPosition) { final DefaultPosition that = (DefaultPosition) object; return Utilities.equals(this.position, that.position); } return false; } DefaultPosition(final Date date);  DefaultPosition(final InternationalString datetime);  DefaultPosition(final TemporalPosition anyOther); }
DefaultPosition implements Position { @Override public boolean equals(final Object object) { if (object == this) { return true; } if (object instanceof DefaultPosition) { final DefaultPosition that = (DefaultPosition) object; return Utilities.equals(this.position, that.position); } return false; } DefaultPosition(final Date date);  DefaultPosition(final InternationalString datetime);  DefaultPosition(final TemporalPosition anyOther); TemporalPosition anyOther(); Date getDate(); Time getTime(); InternationalString getDateTime(); @Override boolean equals(final Object object); @Override int hashCode(); @Override String toString(); }
DefaultPosition implements Position { @Override public boolean equals(final Object object) { if (object == this) { return true; } if (object instanceof DefaultPosition) { final DefaultPosition that = (DefaultPosition) object; return Utilities.equals(this.position, that.position); } return false; } DefaultPosition(final Date date);  DefaultPosition(final InternationalString datetime);  DefaultPosition(final TemporalPosition anyOther); TemporalPosition anyOther(); Date getDate(); Time getTime(); InternationalString getDateTime(); @Override boolean equals(final Object object); @Override int hashCode(); @Override String toString();  }