@Test public void testGetKeyPrefix() { assertEquals("003", new Id("0035000000km1ov").getKeyPrefix()); }
@Nonnull public String getKeyPrefix() { return idStr.substring(0, 3); }
Id { @Nonnull public String getKeyPrefix() { return idStr.substring(0, 3); } }
Id { @Nonnull public String getKeyPrefix() { return idStr.substring(0, 3); } Id(@Nonnull String id); }
Id { @Nonnull public String getKeyPrefix() { return idStr.substring(0, 3); } Id(@Nonnull String id); @Nonnull String getKeyPrefix(); @Nonnull String getFullId(); @Nonnull String getIdStr(); @Override @Nonnull String toString(); @Override boolean equals(Object other); @Override int hashCode(); }
Id { @Nonnull public String getKeyPrefix() { return idStr.substring(0, 3); } Id(@Nonnull String id); @Nonnull String getKeyPrefix(); @Nonnull String getFullId(); @Nonnull String getIdStr(); @Override @Nonnull String toString(); @Override boolean equals(Object other); @Override int hashCode();  }