@Test public void prefixed_uuid() throws Exception { final String id = new PrefixedUuidGenerator("foo").getNextId(); assertThat(id).startsWith("foo-"); assertThat(id.split("-")).hasSize(6); }
@Override public String getNextId() { return String.join("-", prefix, strongUuidGenerator.getNextId()); }
PrefixedUuidGenerator implements IdGenerator { @Override public String getNextId() { return String.join("-", prefix, strongUuidGenerator.getNextId()); } }
PrefixedUuidGenerator implements IdGenerator { @Override public String getNextId() { return String.join("-", prefix, strongUuidGenerator.getNextId()); } PrefixedUuidGenerator(final String applicationName); }
PrefixedUuidGenerator implements IdGenerator { @Override public String getNextId() { return String.join("-", prefix, strongUuidGenerator.getNextId()); } PrefixedUuidGenerator(final String applicationName); @Override String getNextId(); }
PrefixedUuidGenerator implements IdGenerator { @Override public String getNextId() { return String.join("-", prefix, strongUuidGenerator.getNextId()); } PrefixedUuidGenerator(final String applicationName); @Override String getNextId();  }