/** * Create a new unmodifiable empty resource list with the current time as the publish date. */ public static IBundleProvider newEmptyList() { final InstantDt published = InstantDt.withCurrentTime(); return new IBundleProvider() { @Override public List<IBaseResource> getResources(int theFromIndex, int theToIndex) { return Collections.emptyList(); } @Override public Integer size() { return 0; } @Override public InstantDt getPublished() { return published; } @Override public Integer preferredPageSize() { return null; } @Override public String getUuid() { return null; } }; }
final InstantDt searchTime = InstantDt.withCurrentTime();
/** * Create a new unmodifiable empty resource list with the current time as the publish date. */ public static IBundleProvider newEmptyList() { final InstantDt published = InstantDt.withCurrentTime(); return new IBundleProvider() { @Override public List<IBaseResource> getResources(int theFromIndex, int theToIndex) { return Collections.emptyList(); } @Override public Integer size() { return 0; } @Override public InstantDt getPublished() { return published; } @Override public Integer preferredPageSize() { return null; } @Override public String getUuid() { return null; } }; }
ResourceMetadataKeyEnum.PUBLISHED.put(myBundle, InstantDt.withCurrentTime());
ResourceMetadataKeyEnum.PUBLISHED.put(myBundle, InstantDt.withCurrentTime());