@Test public void testLongIdPreserved() { String longId = "012345678901234567"; Id id = new Id(longId); assertEquals(longId, id.getFullId()); assertEquals(18, id.getFullId().length()); }
@Nonnull public String getFullId(){ return this.idStr; }
Id { @Nonnull public String getFullId(){ return this.idStr; } }
Id { @Nonnull public String getFullId(){ return this.idStr; } Id(@Nonnull String id); }
Id { @Nonnull public String getFullId(){ return this.idStr; } 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 getFullId(){ return this.idStr; } 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();  }