@Test public void generate() { newUUID(false); String sid = uuid.nextID(); assertTrue(sid.length() > instanceId.length()); assertTrue(sid.startsWith(instanceId)); assertTrue(sid.matches("[A-Za-z0-9-]+")); }
public String nextID() { return instanceId + "-" + StringUtil.longToString(System.currentTimeMillis(), noCase) + "-" + StringUtil.longToString(counter.getAndIncrement(), noCase); }
UUID { public String nextID() { return instanceId + "-" + StringUtil.longToString(System.currentTimeMillis(), noCase) + "-" + StringUtil.longToString(counter.getAndIncrement(), noCase); } }
UUID { public String nextID() { return instanceId + "-" + StringUtil.longToString(System.currentTimeMillis(), noCase) + "-" + StringUtil.longToString(counter.getAndIncrement(), noCase); } UUID();  UUID(boolean noCase); }
UUID { public String nextID() { return instanceId + "-" + StringUtil.longToString(System.currentTimeMillis(), noCase) + "-" + StringUtil.longToString(counter.getAndIncrement(), noCase); } UUID();  UUID(boolean noCase); String nextID(); }
UUID { public String nextID() { return instanceId + "-" + StringUtil.longToString(System.currentTimeMillis(), noCase) + "-" + StringUtil.longToString(counter.getAndIncrement(), noCase); } UUID();  UUID(boolean noCase); String nextID();  }