@Test public void testEquals() { AmazonNumber date1 = new AmazonNumber(mockSlot, 1); AmazonNumber date2 = new AmazonNumber(mockSlot, 1); assertEquals(date1, date2); assertEquals(date1.getNumber(), date2.getNumber()); assertEquals(date1.getSlot(), date2.getSlot()); assertEquals(date1.hashCode(), date2.hashCode()); assertEquals(date1.toString(), date2.toString()); }
@Override public boolean equals(Object o) { if (!super.equals(o)) return false; AmazonNumber that = (AmazonNumber) o; return number == that.number; }
AmazonNumber extends BaseSlotValue { @Override public boolean equals(Object o) { if (!super.equals(o)) return false; AmazonNumber that = (AmazonNumber) o; return number == that.number; } }
AmazonNumber extends BaseSlotValue { @Override public boolean equals(Object o) { if (!super.equals(o)) return false; AmazonNumber that = (AmazonNumber) o; return number == that.number; } AmazonNumber(com.amazon.ask.model.Slot slot, long number); }
AmazonNumber extends BaseSlotValue { @Override public boolean equals(Object o) { if (!super.equals(o)) return false; AmazonNumber that = (AmazonNumber) o; return number == that.number; } AmazonNumber(com.amazon.ask.model.Slot slot, long number); long getNumber(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); }
AmazonNumber extends BaseSlotValue { @Override public boolean equals(Object o) { if (!super.equals(o)) return false; AmazonNumber that = (AmazonNumber) o; return number == that.number; } AmazonNumber(com.amazon.ask.model.Slot slot, long number); long getNumber(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString();  }