Uid implements Serializable { public boolean matchesFromString(@Nonnull final String uid) { assert uid != null; return this.equals(Uid.<T>fromString(uid)); } Uid();  Uid(@Nonnull final String uuid); private  Uid(@Nonnull final UUID uuid); static boolean isValid(@Nullable final String id); @Nonnull static Uid<T> fromString(@Nonnull final String id); @Nonnull static Uid<T> fromHexString(@Nonnull final String id); @Nonnull String toHexString(); @SuppressWarnings({"unchecked", "UnusedParameters"}) @Nonnull Uid<T> as(@Nonnull final Class<T> ignored); boolean matchesFromString(@Nonnull final String uid); @Override boolean equals(@Nullable final Object obj); @Override int hashCode(); @Override @Nonnull String toString();  }
@Test public void testMatchesFromString() { LOG.info("testMatchesFromString"); final Uid<String> a = Uid.fromString("0-0-0-0-0"); Assert.assertTrue(a.matchesFromString("0000-0000-000-0-0")); }