@Test void testGetResource() { assertNull(ModificationDate.get((Resource)null)); assertNull(ModificationDate.get(resource1)); applyPageLastModified(resource1, SAMPLE_CALENDAR_1); assertEquals(SAMPLE_CALENDAR_1.getTime(), ModificationDate.get(resource1)); applyPageLastModified(resource1, SAMPLE_CALENDAR_1); applyLastModified(resource1, SAMPLE_CALENDAR_2); assertEquals(SAMPLE_CALENDAR_2.getTime(), ModificationDate.get(resource1)); }
public static @Nullable Date get(@Nullable Page page) { if (page == null) { return null; } Calendar lastModified = page.getLastModified(); if (lastModified != null) { return lastModified.getTime(); } else { return null; } }
ModificationDate { public static @Nullable Date get(@Nullable Page page) { if (page == null) { return null; } Calendar lastModified = page.getLastModified(); if (lastModified != null) { return lastModified.getTime(); } else { return null; } } }
ModificationDate { public static @Nullable Date get(@Nullable Page page) { if (page == null) { return null; } Calendar lastModified = page.getLastModified(); if (lastModified != null) { return lastModified.getTime(); } else { return null; } } private  ModificationDate(); }
ModificationDate { public static @Nullable Date get(@Nullable Page page) { if (page == null) { return null; } Calendar lastModified = page.getLastModified(); if (lastModified != null) { return lastModified.getTime(); } else { return null; } } private  ModificationDate(); static @Nullable Date get(@Nullable Page page); static @Nullable Date get(@Nullable Resource resource); static @Nullable Date mostRecent(@Nullable Resource @NotNull... resources); static @Nullable Date mostRecent(@Nullable Page @NotNull... pages); static @Nullable Date mostRecent(@NotNull ModificationDateProvider @NotNull... dateProviders); static @Nullable Date mostRecent(Date @NotNull... dates); }
ModificationDate { public static @Nullable Date get(@Nullable Page page) { if (page == null) { return null; } Calendar lastModified = page.getLastModified(); if (lastModified != null) { return lastModified.getTime(); } else { return null; } } private  ModificationDate(); static @Nullable Date get(@Nullable Page page); static @Nullable Date get(@Nullable Resource resource); static @Nullable Date mostRecent(@Nullable Resource @NotNull... resources); static @Nullable Date mostRecent(@Nullable Page @NotNull... pages); static @Nullable Date mostRecent(@NotNull ModificationDateProvider @NotNull... dateProviders); static @Nullable Date mostRecent(Date @NotNull... dates);  }