@Test public void testHashCode() { int result = intervalLength1.hashCode(); assertFalse(intervalLength2.hashCode() == result); }
@Override public int hashCode() { int hash = 5; hash = 37 * hash + (this.unit != null ? this.unit.hashCode() : 0); hash = 37 * hash + this.factor; hash = 37 * hash + this.radix; hash = 37 * hash + this.value; return hash; }
DefaultIntervalLength extends DefaultDuration implements IntervalLength { @Override public int hashCode() { int hash = 5; hash = 37 * hash + (this.unit != null ? this.unit.hashCode() : 0); hash = 37 * hash + this.factor; hash = 37 * hash + this.radix; hash = 37 * hash + this.value; return hash; } }
DefaultIntervalLength extends DefaultDuration implements IntervalLength { @Override public int hashCode() { int hash = 5; hash = 37 * hash + (this.unit != null ? this.unit.hashCode() : 0); hash = 37 * hash + this.factor; hash = 37 * hash + this.radix; hash = 37 * hash + this.value; return hash; } DefaultIntervalLength(Unit unit, int radix, int factor, int value); }
DefaultIntervalLength extends DefaultDuration implements IntervalLength { @Override public int hashCode() { int hash = 5; hash = 37 * hash + (this.unit != null ? this.unit.hashCode() : 0); hash = 37 * hash + this.factor; hash = 37 * hash + this.radix; hash = 37 * hash + this.value; return hash; } 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 int hashCode() { int hash = 5; hash = 37 * hash + (this.unit != null ? this.unit.hashCode() : 0); hash = 37 * hash + this.factor; hash = 37 * hash + this.radix; hash = 37 * hash + this.value; return hash; } 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();  }