@Test public void testGetLastMillisecondWithTimeZone() { Millisecond m = new Millisecond(750, 55, 1, 2, 7, 7, 1950); TimeZone zone = TimeZone.getTimeZone("America/Los_Angeles"); Calendar c = new GregorianCalendar(zone); assertEquals(-614962684250L, m.getLastMillisecond(c)); try { m.getLastMillisecond(null); fail("Should have thrown a NullPointerException"); } catch (NullPointerException e) { } }
@Override public long getLastMillisecond() { return this.firstMillisecond; }
Millisecond extends RegularTimePeriod implements Serializable, Comparable<TimePeriod> { @Override public long getLastMillisecond() { return this.firstMillisecond; } }
Millisecond extends RegularTimePeriod implements Serializable, Comparable<TimePeriod> { @Override public long getLastMillisecond() { return this.firstMillisecond; } Millisecond();  Millisecond(int millisecond, Second second);  Millisecond(int millisecond, int second, int minute, int hour,
                       int day, int month, int year);  Millisecond(Date time);  Millisecond(Date time, TimeZone zone, Locale locale); }
Millisecond extends RegularTimePeriod implements Serializable, Comparable<TimePeriod> { @Override public long getLastMillisecond() { return this.firstMillisecond; } Millisecond();  Millisecond(int millisecond, Second second);  Millisecond(int millisecond, int second, int minute, int hour,
                       int day, int month, int year);  Millisecond(Date time);  Millisecond(Date time, TimeZone zone, Locale locale); Second getSecond(); long getMillisecond(); @Override long getFirstMillisecond(); @Override long getLastMillisecond(); @Override void peg(Calendar calendar); @Override RegularTimePeriod previous(); @Override RegularTimePeriod next(); @Override long getSerialIndex(); @Override boolean equals(Object obj); @Override int hashCode(); @Override int compareTo(TimePeriod obj); @Override long getFirstMillisecond(Calendar calendar); @Override long getLastMillisecond(Calendar calendar); }
Millisecond extends RegularTimePeriod implements Serializable, Comparable<TimePeriod> { @Override public long getLastMillisecond() { return this.firstMillisecond; } Millisecond();  Millisecond(int millisecond, Second second);  Millisecond(int millisecond, int second, int minute, int hour,
                       int day, int month, int year);  Millisecond(Date time);  Millisecond(Date time, TimeZone zone, Locale locale); Second getSecond(); long getMillisecond(); @Override long getFirstMillisecond(); @Override long getLastMillisecond(); @Override void peg(Calendar calendar); @Override RegularTimePeriod previous(); @Override RegularTimePeriod next(); @Override long getSerialIndex(); @Override boolean equals(Object obj); @Override int hashCode(); @Override int compareTo(TimePeriod obj); @Override long getFirstMillisecond(Calendar calendar); @Override long getLastMillisecond(Calendar calendar); static final int FIRST_MILLISECOND_IN_SECOND; static final int LAST_MILLISECOND_IN_SECOND; }