@Test public void testTruncateLongId() { String longId = "012345678901234567"; Id id = new Id(longId); assertEquals(longId.substring(0, 15), id.toString()); assertEquals(15, id.toString().length()); }
@Override @Nonnull public String toString() { return this.getIdStr(); }
Id { @Override @Nonnull public String toString() { return this.getIdStr(); } }
Id { @Override @Nonnull public String toString() { return this.getIdStr(); } Id(@Nonnull String id); }
Id { @Override @Nonnull public String toString() { return this.getIdStr(); } 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 { @Override @Nonnull public String toString() { return this.getIdStr(); } 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();  }