@Test public void testPack() { LocalDate date = LocalDate.now(); LocalTime time = LocalTime.now(); long packed = pack(date, time); LocalDate d1 = PackedLocalDate.asLocalDate(date(packed)); LocalTime t1 = PackedLocalTime.asLocalTime(time(packed)); assertNotNull(d1); assertNotNull(t1); assertEquals(date.toString(), d1.toString()); }
public Filter isAfter(LocalDate date) { return new LocalDateIsAfter(this, PackedLocalDate.pack(date)); }
public Filter isBefore(LocalDate date) { return new LocalDateIsBefore(this, PackedLocalDate.pack(date)); }