@Test public void testHashCode() { int result = temporalPosition1.hashCode(); assertFalse(temporalPosition2.hashCode() == result); }
@Override public int hashCode() { int hash = 5; hash = 37 * hash + (this.frame != null ? this.frame.hashCode() : 0); hash = 37 * hash + (this.indeterminatePosition != null ? this.indeterminatePosition.hashCode() : 0); return hash; }
DefaultTemporalPosition implements TemporalPosition { @Override public int hashCode() { int hash = 5; hash = 37 * hash + (this.frame != null ? this.frame.hashCode() : 0); hash = 37 * hash + (this.indeterminatePosition != null ? this.indeterminatePosition.hashCode() : 0); return hash; } }
DefaultTemporalPosition implements TemporalPosition { @Override public int hashCode() { int hash = 5; hash = 37 * hash + (this.frame != null ? this.frame.hashCode() : 0); hash = 37 * hash + (this.indeterminatePosition != null ? this.indeterminatePosition.hashCode() : 0); return hash; } DefaultTemporalPosition(TemporalReferenceSystem frame, IndeterminateValue indeterminatePosition); }
DefaultTemporalPosition implements TemporalPosition { @Override public int hashCode() { int hash = 5; hash = 37 * hash + (this.frame != null ? this.frame.hashCode() : 0); hash = 37 * hash + (this.indeterminatePosition != null ? this.indeterminatePosition.hashCode() : 0); return hash; } DefaultTemporalPosition(TemporalReferenceSystem frame, IndeterminateValue indeterminatePosition); IndeterminateValue getIndeterminatePosition(); TemporalReferenceSystem getFrame(); void setFrame(TemporalReferenceSystem frame); void setIndeterminatePosition(IndeterminateValue indeterminatePosition); @Override boolean equals(final Object object); @Override int hashCode(); @Override String toString(); }
DefaultTemporalPosition implements TemporalPosition { @Override public int hashCode() { int hash = 5; hash = 37 * hash + (this.frame != null ? this.frame.hashCode() : 0); hash = 37 * hash + (this.indeterminatePosition != null ? this.indeterminatePosition.hashCode() : 0); return hash; } DefaultTemporalPosition(TemporalReferenceSystem frame, IndeterminateValue indeterminatePosition); IndeterminateValue getIndeterminatePosition(); TemporalReferenceSystem getFrame(); void setFrame(TemporalReferenceSystem frame); void setIndeterminatePosition(IndeterminateValue indeterminatePosition); @Override boolean equals(final Object object); @Override int hashCode(); @Override String toString();  }