@Test public void testFormat() throws ParseException { final Deadline deadline = Deadline.fromUnixMilliseconds(1000); final Deadline deadline2 = Deadline.parse(deadline.toString()); Assert.assertEquals(1000, deadline2.getValue()); }
public String format(final TimeUnit overdueTimeUnit) { return String.format("Deadline: %s, %s overdue", formatTarget(), remainingTimeValue()); }
Deadline { public String format(final TimeUnit overdueTimeUnit) { return String.format("Deadline: %s, %s overdue", formatTarget(), remainingTimeValue()); } }
Deadline { public String format(final TimeUnit overdueTimeUnit) { return String.format("Deadline: %s, %s overdue", formatTarget(), remainingTimeValue()); } private  Deadline(final long deadlineMillis); }
Deadline { public String format(final TimeUnit overdueTimeUnit) { return String.format("Deadline: %s, %s overdue", formatTarget(), remainingTimeValue()); } private  Deadline(final long deadlineMillis); static Deadline calculate(final long timeMillis, final TimeValue timeValue); static Deadline calculate(final TimeValue timeValue); static Deadline fromUnixMilliseconds(final long value); static Deadline parse(final String source); @Override boolean equals(final Object obj); String format(final TimeUnit overdueTimeUnit); String formatTarget(); Deadline freeze(); long getValue(); @Override int hashCode(); boolean isBefore(final long millis); boolean isExpired(); boolean isMax(); boolean isMin(); boolean isNotExpired(); Deadline min(final Deadline other); long remaining(); TimeValue remainingTimeValue(); @Override String toString(); }
Deadline { public String format(final TimeUnit overdueTimeUnit) { return String.format("Deadline: %s, %s overdue", formatTarget(), remainingTimeValue()); } private  Deadline(final long deadlineMillis); static Deadline calculate(final long timeMillis, final TimeValue timeValue); static Deadline calculate(final TimeValue timeValue); static Deadline fromUnixMilliseconds(final long value); static Deadline parse(final String source); @Override boolean equals(final Object obj); String format(final TimeUnit overdueTimeUnit); String formatTarget(); Deadline freeze(); long getValue(); @Override int hashCode(); boolean isBefore(final long millis); boolean isExpired(); boolean isMax(); boolean isMin(); boolean isNotExpired(); Deadline min(final Deadline other); long remaining(); TimeValue remainingTimeValue(); @Override String toString(); static final String DATE_FORMAT; static Deadline MAX_VALUE; static Deadline MIN_VALUE; }