UniqueId implements Comparable<UniqueId>, UniqueIdentifiable, ObjectIdentifiable, Serializable { public static UniqueId of(String scheme, String value) { return of(scheme, value, null); } private  UniqueId(String scheme, String value, String version); static UniqueId of(String scheme, String value); static UniqueId of(String scheme, String value, String version); static UniqueId of(ObjectId objectId, String version); static UniqueId of(ExternalId externalId); @FromString static UniqueId parse(String str); String getScheme(); String getValue(); String getVersion(); UniqueId withScheme(final String scheme); UniqueId withValue(final String value); UniqueId withVersion(final String version); @Override ObjectId getObjectId(); @Override UniqueId getUniqueId(); boolean isLatest(); boolean isVersioned(); UniqueId toLatest(); ExternalId toExternalId(); boolean equalObjectId(ObjectIdentifiable other); @Override int compareTo(UniqueId other); @Override boolean equals(Object obj); @Override int hashCode(); @Override @ToString String toString(); @Deprecated void toFudgeMsg(final FudgeSerializer serializer, final MutableFudgeMsg msg); @Deprecated static UniqueId fromFudgeMsg(final FudgeDeserializer deserializer, final FudgeMsg msg); static final ExternalScheme EXTERNAL_SCHEME; }
@Test(expectedExceptions = IllegalArgumentException.class) public void test_factory_String_String_nullScheme() { UniqueId.of((String) null, "value"); }
@Test(expectedExceptions = IllegalArgumentException.class) public void test_factory_String_String_emptyScheme() { UniqueId.of("", "value"); }
@Test(expectedExceptions = IllegalArgumentException.class) public void test_factory_String_String_nullValue() { UniqueId.of("Scheme", (String) null); }
@Test(expectedExceptions = IllegalArgumentException.class) public void test_factory_String_String_emptyValue() { UniqueId.of("Scheme", ""); }
@Test(expectedExceptions = IllegalArgumentException.class) public void test_factory_String_String_String_nullScheme() { UniqueId.of((String) null, "value", "version"); }
@Test(expectedExceptions = IllegalArgumentException.class) public void test_factory_String_String_String_emptyScheme() { UniqueId.of("", "value", "version"); }
@Test(expectedExceptions = IllegalArgumentException.class) public void test_factory_String_String_String_nullValue() { UniqueId.of("Scheme", (String) null, "version"); }
@Test(expectedExceptions = IllegalArgumentException.class) public void test_factory_String_String_String_emptyValue() { UniqueId.of("Scheme", "", "version"); }
@Test(expectedExceptions = IllegalArgumentException.class) public void test_factory_ObjectId_String_nullObjectId() { UniqueId.of((ObjectId) null, "version"); }