@Test public void testEquals() { assertFalse(intervalLength1.equals(null)); assertEquals(intervalLength1, intervalLength1); assertFalse(intervalLength1.equals(intervalLength2)); }
@Override public boolean equals(final Object object) { if (object == this) { return true; } if (object instanceof DefaultIntervalLength) { final DefaultIntervalLength that = (DefaultIntervalLength) object; return Utilities.equals(this.factor, that.factor) && Utilities.equals(this.radix, that.radix) && Utilities.equals(this.unit, that.unit) && Utilities.equals(this.value, that.unit); } return false; }
DefaultIntervalLength extends DefaultDuration implements IntervalLength { @Override public boolean equals(final Object object) { if (object == this) { return true; } if (object instanceof DefaultIntervalLength) { final DefaultIntervalLength that = (DefaultIntervalLength) object; return Utilities.equals(this.factor, that.factor) && Utilities.equals(this.radix, that.radix) && Utilities.equals(this.unit, that.unit) && Utilities.equals(this.value, that.unit); } return false; } }
DefaultIntervalLength extends DefaultDuration implements IntervalLength { @Override public boolean equals(final Object object) { if (object == this) { return true; } if (object instanceof DefaultIntervalLength) { final DefaultIntervalLength that = (DefaultIntervalLength) object; return Utilities.equals(this.factor, that.factor) && Utilities.equals(this.radix, that.radix) && Utilities.equals(this.unit, that.unit) && Utilities.equals(this.value, that.unit); } return false; } DefaultIntervalLength(Unit unit, int radix, int factor, int value); }
DefaultIntervalLength extends DefaultDuration implements IntervalLength { @Override public boolean equals(final Object object) { if (object == this) { return true; } if (object instanceof DefaultIntervalLength) { final DefaultIntervalLength that = (DefaultIntervalLength) object; return Utilities.equals(this.factor, that.factor) && Utilities.equals(this.radix, that.radix) && Utilities.equals(this.unit, that.unit) && Utilities.equals(this.value, that.unit); } return false; } DefaultIntervalLength(Unit unit, int radix, int factor, int value); Unit getUnit(); int getRadix(); int getFactor(); int getValue(); @Override long getTimeInMillis(); @Override boolean equals(final Object object); @Override int hashCode(); @Override String toString(); }
DefaultIntervalLength extends DefaultDuration implements IntervalLength { @Override public boolean equals(final Object object) { if (object == this) { return true; } if (object instanceof DefaultIntervalLength) { final DefaultIntervalLength that = (DefaultIntervalLength) object; return Utilities.equals(this.factor, that.factor) && Utilities.equals(this.radix, that.radix) && Utilities.equals(this.unit, that.unit) && Utilities.equals(this.value, that.unit); } return false; } DefaultIntervalLength(Unit unit, int radix, int factor, int value); Unit getUnit(); int getRadix(); int getFactor(); int getValue(); @Override long getTimeInMillis(); @Override boolean equals(final Object object); @Override int hashCode(); @Override String toString();  }