@Test public void testEqualsSelf() { AmazonDuration test = new AmazonDuration( mockSlot, Period.ZERO, Duration.ZERO); assertEquals(test, test); assertEquals(test.hashCode(), test.hashCode()); }
@Override public int hashCode() { return Objects.hash(super.hashCode(), period, duration); }
AmazonDuration extends BaseSlotValue { @Override public int hashCode() { return Objects.hash(super.hashCode(), period, duration); } }
AmazonDuration extends BaseSlotValue { @Override public int hashCode() { return Objects.hash(super.hashCode(), period, duration); } AmazonDuration(Slot slot, Period period, Duration duration); }
AmazonDuration extends BaseSlotValue { @Override public int hashCode() { return Objects.hash(super.hashCode(), period, duration); } AmazonDuration(Slot slot, Period period, Duration duration); Period getPeriod(); Duration getDuration(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); }
AmazonDuration extends BaseSlotValue { @Override public int hashCode() { return Objects.hash(super.hashCode(), period, duration); } AmazonDuration(Slot slot, Period period, Duration duration); Period getPeriod(); Duration getDuration(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString();  }