@Test public void testStringValue() { assertEquals("9999", new FourDigitNumber(mockSlot, 9, 9, 9, 9).stringValue()); assertEquals("0999", new FourDigitNumber(mockSlot, 0, 9, 9, 9).stringValue()); assertEquals("0099", new FourDigitNumber(mockSlot, 0, 0, 9, 9).stringValue()); assertEquals("0009", new FourDigitNumber(mockSlot, 0, 0, 0, 9).stringValue()); assertEquals("1111", new FourDigitNumber(mockSlot, 1, 1, 1, 1).stringValue()); assertEquals("0111", new FourDigitNumber(mockSlot, 0, 1, 1, 1).stringValue()); assertEquals("0011", new FourDigitNumber(mockSlot, 0, 0, 1, 1).stringValue()); assertEquals("0001", new FourDigitNumber(mockSlot, 0, 0, 0, 1).stringValue()); assertEquals("0000", new FourDigitNumber(mockSlot, 0, 0, 0, 0).stringValue()); }
public String stringValue() { return String.format("%04d", getNumber()); }
FourDigitNumber extends BaseSlotValue { public String stringValue() { return String.format("%04d", getNumber()); } }
FourDigitNumber extends BaseSlotValue { public String stringValue() { return String.format("%04d", getNumber()); } FourDigitNumber(com.amazon.ask.model.Slot slot, int first, int second, int third, int fourth); }
FourDigitNumber extends BaseSlotValue { public String stringValue() { return String.format("%04d", getNumber()); } FourDigitNumber(com.amazon.ask.model.Slot slot, int first, int second, int third, int fourth); int[] getDigits(); int getFirstDigit(); int getSecondDigit(); int getThirdDigit(); int getFourthDigit(); int getNumber(); String stringValue(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); }
FourDigitNumber extends BaseSlotValue { public String stringValue() { return String.format("%04d", getNumber()); } FourDigitNumber(com.amazon.ask.model.Slot slot, int first, int second, int third, int fourth); int[] getDigits(); int getFirstDigit(); int getSecondDigit(); int getThirdDigit(); int getFourthDigit(); int getNumber(); String stringValue(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString();  }