@Test public void testToRepositoryId() { assertEquals("2016-52", SpaceRepository.toRepositoryId( DateTime.parse("2017-01-01T00:00:00.000Z"))); assertEquals("2017-01", SpaceRepository.toRepositoryId( DateTime.parse("2017-01-02T00:00:00.000Z"))); }
public static String toRepositoryId(DateTime date) { return REPO_ID_FORMATTER.print(date); }
SpaceRepository implements Comparable<SpaceRepository> { public static String toRepositoryId(DateTime date) { return REPO_ID_FORMATTER.print(date); } }
SpaceRepository implements Comparable<SpaceRepository> { public static String toRepositoryId(DateTime date) { return REPO_ID_FORMATTER.print(date); }  }
SpaceRepository implements Comparable<SpaceRepository> { public static String toRepositoryId(DateTime date) { return REPO_ID_FORMATTER.print(date); }  String id(); SpaceRepository withId(String id); String type(); SpaceRepository withType(String type); Map<String, Object> settings(); SpaceRepository withSettings(Map<String, Object> settings); @Override boolean equals(Object obj); @Override int hashCode(); @Override String toString(); @Override // ordered from latest to oldest repository int compareTo(SpaceRepository other); static String currentRepositoryId(); static String toRepositoryId(DateTime date); static DateTime toDateTime(String repositoryId); static String pastRepositoryId(String repositoryId, int weeks); }
SpaceRepository implements Comparable<SpaceRepository> { public static String toRepositoryId(DateTime date) { return REPO_ID_FORMATTER.print(date); }  String id(); SpaceRepository withId(String id); String type(); SpaceRepository withType(String type); Map<String, Object> settings(); SpaceRepository withSettings(Map<String, Object> settings); @Override boolean equals(Object obj); @Override int hashCode(); @Override String toString(); @Override // ordered from latest to oldest repository int compareTo(SpaceRepository other); static String currentRepositoryId(); static String toRepositoryId(DateTime date); static DateTime toDateTime(String repositoryId); static String pastRepositoryId(String repositoryId, int weeks);  }