@Test public void testTotalMilliseconds() { Duration duration = new Duration(1, 1, 1, 1, 1); Assert.assertEquals(90061001, duration.getTotalMilliseconds()); }
public long getTotalMilliseconds() { return (days * SECONDS_IN_ONE_DAY * 1000L) + (hours * SECONDS_IN_ONE_HOUR * 1000L) + (minutes * SECONDS_IN_ONE_MINUTE * 1000L) + (seconds * 1000L) + milliseconds; }
Duration { public long getTotalMilliseconds() { return (days * SECONDS_IN_ONE_DAY * 1000L) + (hours * SECONDS_IN_ONE_HOUR * 1000L) + (minutes * SECONDS_IN_ONE_MINUTE * 1000L) + (seconds * 1000L) + milliseconds; } }
Duration { public long getTotalMilliseconds() { return (days * SECONDS_IN_ONE_DAY * 1000L) + (hours * SECONDS_IN_ONE_HOUR * 1000L) + (minutes * SECONDS_IN_ONE_MINUTE * 1000L) + (seconds * 1000L) + milliseconds; } Duration(long days, int hours, int minutes, int seconds, int milliseconds);  Duration(long duration); }
Duration { public long getTotalMilliseconds() { return (days * SECONDS_IN_ONE_DAY * 1000L) + (hours * SECONDS_IN_ONE_HOUR * 1000L) + (minutes * SECONDS_IN_ONE_MINUTE * 1000L) + (seconds * 1000L) + milliseconds; } Duration(long days, int hours, int minutes, int seconds, int milliseconds);  Duration(long duration); long getDays(); int getHours(); int getMinutes(); int getSeconds(); int getMilliseconds(); long getTotalMilliseconds(); @Override String toString(); @Override boolean equals(Object other); @Override int hashCode(); }
Duration { public long getTotalMilliseconds() { return (days * SECONDS_IN_ONE_DAY * 1000L) + (hours * SECONDS_IN_ONE_HOUR * 1000L) + (minutes * SECONDS_IN_ONE_MINUTE * 1000L) + (seconds * 1000L) + milliseconds; } Duration(long days, int hours, int minutes, int seconds, int milliseconds);  Duration(long duration); long getDays(); int getHours(); int getMinutes(); int getSeconds(); int getMilliseconds(); long getTotalMilliseconds(); @Override String toString(); @Override boolean equals(Object other); @Override int hashCode();  }