@Test @DisplayName("provide `equals` based on values") void provideEquals() { BoundedContextName bcName = newName(getClass().getName()); new EqualsTester() .addEqualityGroup( StorageSpec.of(bcName, TypeUrl.of(StringValue.class), String.class), StorageSpec.of(bcName, TypeUrl.of(StringValue.class), String.class)) .addEqualityGroup( StorageSpec.of(bcName, TypeUrl.of(Timestamp.class), Integer.class), StorageSpec.of(bcName, TypeUrl.of(Timestamp.class), Integer.class)) .testEquals(); }
public static <I> StorageSpec<I> of(BoundedContextName context, TypeUrl entityStateUrl, Class<I> idClass) { checkNotDefaultArg(context); checkNotNull(entityStateUrl); checkNotNull(idClass); return new StorageSpec<>(context, entityStateUrl, idClass); }
StorageSpec implements Serializable { public static <I> StorageSpec<I> of(BoundedContextName context, TypeUrl entityStateUrl, Class<I> idClass) { checkNotDefaultArg(context); checkNotNull(entityStateUrl); checkNotNull(idClass); return new StorageSpec<>(context, entityStateUrl, idClass); } }
StorageSpec implements Serializable { public static <I> StorageSpec<I> of(BoundedContextName context, TypeUrl entityStateUrl, Class<I> idClass) { checkNotDefaultArg(context); checkNotNull(entityStateUrl); checkNotNull(idClass); return new StorageSpec<>(context, entityStateUrl, idClass); } private  StorageSpec(BoundedContextName context, TypeUrl entityStateUrl, Class<I> idClass); }
StorageSpec implements Serializable { public static <I> StorageSpec<I> of(BoundedContextName context, TypeUrl entityStateUrl, Class<I> idClass) { checkNotDefaultArg(context); checkNotNull(entityStateUrl); checkNotNull(idClass); return new StorageSpec<>(context, entityStateUrl, idClass); } private  StorageSpec(BoundedContextName context, TypeUrl entityStateUrl, Class<I> idClass); static StorageSpec<I> of(BoundedContextName context, TypeUrl entityStateUrl, Class<I> idClass); @Deprecated BoundedContextName getBoundedContextName(); BoundedContextName context(); @Deprecated TypeUrl getEntityStateUrl(); TypeUrl entityStateUrl(); @Deprecated Class<I> getIdClass(); Class<I> idClass(); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString(); }
StorageSpec implements Serializable { public static <I> StorageSpec<I> of(BoundedContextName context, TypeUrl entityStateUrl, Class<I> idClass) { checkNotDefaultArg(context); checkNotNull(entityStateUrl); checkNotNull(idClass); return new StorageSpec<>(context, entityStateUrl, idClass); } private  StorageSpec(BoundedContextName context, TypeUrl entityStateUrl, Class<I> idClass); static StorageSpec<I> of(BoundedContextName context, TypeUrl entityStateUrl, Class<I> idClass); @Deprecated BoundedContextName getBoundedContextName(); BoundedContextName context(); @Deprecated TypeUrl getEntityStateUrl(); TypeUrl entityStateUrl(); @Deprecated Class<I> getIdClass(); Class<I> idClass(); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString();  }