@Test void similar() { String id1 = Id.build("foo_bar"); String id2 = Id.build("foo-bar"); String id3 = Id.build("foo bar"); assertEquals(id1, id2); assertEquals(id1, id3); assertEquals(id2, id3); String id4 = Id.build("foobar"); String id5 = Id.build("fooBar"); assertEquals(id4, id5); assertNotEquals(id1, id4); }
public static String build(String id, String... additionalIds) { return build(id, '-', additionalIds); }
Id { public static String build(String id, String... additionalIds) { return build(id, '-', additionalIds); } }
Id { public static String build(String id, String... additionalIds) { return build(id, '-', additionalIds); } private  Id(); }
Id { public static String build(String id, String... additionalIds) { return build(id, '-', additionalIds); } private  Id(); static String unique(); static String unique(String id, String... additionalIds); static String build(String id, String... additionalIds); }
Id { public static String build(String id, String... additionalIds) { return build(id, '-', additionalIds); } private  Id(); static String unique(); static String unique(String id, String... additionalIds); static String build(String id, String... additionalIds);  }