@Test public void sameDay() { DelayedDailyPathComputer computer = new DelayedDailyPathComputer(Duration.ofHours(2)); Assert.assertEquals("1987-08-13", computer.apply(LocalDateTime.parse("1987-08-13T14:00:00"))); Assert.assertEquals("1987-08-13", computer.apply(LocalDateTime.parse("1987-08-13T02:00:00"))); }
@Override public String apply(Temporal localDateTime) { Temporal actualDayBucket = localDateTime.minus(graceDelay); return DateTimeFormatter.ofPattern("YYYY-MM-dd").format(actualDayBucket); }
DelayedDailyPathComputer implements Function<Temporal, String> { @Override public String apply(Temporal localDateTime) { Temporal actualDayBucket = localDateTime.minus(graceDelay); return DateTimeFormatter.ofPattern("YYYY-MM-dd").format(actualDayBucket); } }
DelayedDailyPathComputer implements Function<Temporal, String> { @Override public String apply(Temporal localDateTime) { Temporal actualDayBucket = localDateTime.minus(graceDelay); return DateTimeFormatter.ofPattern("YYYY-MM-dd").format(actualDayBucket); } DelayedDailyPathComputer(TemporalAmount temporalDelay); }
DelayedDailyPathComputer implements Function<Temporal, String> { @Override public String apply(Temporal localDateTime) { Temporal actualDayBucket = localDateTime.minus(graceDelay); return DateTimeFormatter.ofPattern("YYYY-MM-dd").format(actualDayBucket); } DelayedDailyPathComputer(TemporalAmount temporalDelay); @Override String apply(Temporal localDateTime); }
DelayedDailyPathComputer implements Function<Temporal, String> { @Override public String apply(Temporal localDateTime) { Temporal actualDayBucket = localDateTime.minus(graceDelay); return DateTimeFormatter.ofPattern("YYYY-MM-dd").format(actualDayBucket); } DelayedDailyPathComputer(TemporalAmount temporalDelay); @Override String apply(Temporal localDateTime);  }