@Test public void testHashCode() { int result = period1.hashCode(); assertFalse(period2.hashCode() == result); }
@Override public int hashCode() { int hash = 5; hash = 37 * hash + (this.begining != null ? this.begining.hashCode() : 0); hash = 37 * hash + (this.ending != null ? this.ending.hashCode() : 0); return hash; }
DefaultPeriod extends DefaultTemporalGeometricPrimitive implements Period { @Override public int hashCode() { int hash = 5; hash = 37 * hash + (this.begining != null ? this.begining.hashCode() : 0); hash = 37 * hash + (this.ending != null ? this.ending.hashCode() : 0); return hash; } }
DefaultPeriod extends DefaultTemporalGeometricPrimitive implements Period { @Override public int hashCode() { int hash = 5; hash = 37 * hash + (this.begining != null ? this.begining.hashCode() : 0); hash = 37 * hash + (this.ending != null ? this.ending.hashCode() : 0); return hash; } DefaultPeriod(Instant begining, Instant ending); }
DefaultPeriod extends DefaultTemporalGeometricPrimitive implements Period { @Override public int hashCode() { int hash = 5; hash = 37 * hash + (this.begining != null ? this.begining.hashCode() : 0); hash = 37 * hash + (this.ending != null ? this.ending.hashCode() : 0); return hash; } DefaultPeriod(Instant begining, Instant ending); Instant getBeginning(); void setBegining(Instant begining); void setBegining(Date date); Instant getEnding(); void setEnding(Instant ending); void setEnding(Date date); @Override boolean equals(final Object object); @Override int hashCode(); @Override String toString(); }
DefaultPeriod extends DefaultTemporalGeometricPrimitive implements Period { @Override public int hashCode() { int hash = 5; hash = 37 * hash + (this.begining != null ? this.begining.hashCode() : 0); hash = 37 * hash + (this.ending != null ? this.ending.hashCode() : 0); return hash; } DefaultPeriod(Instant begining, Instant ending); Instant getBeginning(); void setBegining(Instant begining); void setBegining(Date date); Instant getEnding(); void setEnding(Instant ending); void setEnding(Date date); @Override boolean equals(final Object object); @Override int hashCode(); @Override String toString();  }