Time implements Comparable<Time>, Serializable { public boolean isAfter(Time other) { return compareTo(other) > 0; } Time();  Time(int hour, int minute);  Time(LocalTime localTime);  Time(String timeStr); String timeStr(); Integer getHour(); void setHour(Integer hour); Integer getMinute(); void setMinute(Integer minute); DateTime toDateTime(DateTime dateTime); DateTime toDateTime(LocalDate date); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString(); static Time parseTime(String time, String separator); @Override int compareTo(Time otherTime); boolean isBefore(Time other); boolean isAfter(Time other); boolean isBeforeOrEqual(Time other); boolean isAfterOrEqual(Time other); boolean isBetween(Time start, Time end); static Time valueOf(String str);  }
@Test public void shouldTestIfCurrentTimeGreaterThanGivenTime() { assertTrue(new Time(5, 0).isAfter(new Time(4, 59))); assertFalse(new Time(4, 0).isAfter(new Time(5, 0))); }