/** * Tests the equality of this object against an arbitrary Object. * * @param object the object to compare * * @return A boolean. */ public boolean equals(Object object) { if (object instanceof FixedMillisecond) { FixedMillisecond m = (FixedMillisecond) object; return this.time == m.getFirstMillisecond(); } else { return false; } }
/** * Tests the equality of this object against an arbitrary Object. * * @param object the object to compare * * @return A boolean. */ @Override public boolean equals(Object object) { if (object instanceof FixedMillisecond) { FixedMillisecond m = (FixedMillisecond) object; return this.time == m.getFirstMillisecond(); } else { return false; } }