@Test public void toStringWhenNamesDisabled() { ReplicantTestUtil.disableNames(); final EntitySchema entitySchema = new EntitySchema( ValueUtil.randomInt(), null, Object.class, ( i, d ) -> 1, null ); assertEquals( entitySchema.toString(), "replicant.EntitySchema@" + Integer.toHexString( entitySchema.hashCode() ) ); }
@Override public String toString() { if ( Replicant.areNamesEnabled() ) { return getName(); } else { return super.toString(); } }
EntitySchema { @Override public String toString() { if ( Replicant.areNamesEnabled() ) { return getName(); } else { return super.toString(); } } }
EntitySchema { @Override public String toString() { if ( Replicant.areNamesEnabled() ) { return getName(); } else { return super.toString(); } } <T> EntitySchema( final int id,
                           @Nullable final String name,
                           @Nonnull final Class<T> type,
                           @Nonnull final Creator<T> creator,
                           @Nullable final Updater<T> updater ); }
EntitySchema { @Override public String toString() { if ( Replicant.areNamesEnabled() ) { return getName(); } else { return super.toString(); } } <T> EntitySchema( final int id,
                           @Nullable final String name,
                           @Nonnull final Class<T> type,
                           @Nonnull final Creator<T> creator,
                           @Nullable final Updater<T> updater ); int getId(); @Nonnull String getName(); @Nonnull Class<?> getType(); @Nonnull Creator<?> getCreator(); @Nullable Updater<?> getUpdater(); @Override String toString(); }
EntitySchema { @Override public String toString() { if ( Replicant.areNamesEnabled() ) { return getName(); } else { return super.toString(); } } <T> EntitySchema( final int id,
                           @Nullable final String name,
                           @Nonnull final Class<T> type,
                           @Nonnull final Creator<T> creator,
                           @Nullable final Updater<T> updater ); int getId(); @Nonnull String getName(); @Nonnull Class<?> getType(); @Nonnull Creator<?> getCreator(); @Nullable Updater<?> getUpdater(); @Override String toString();  }