WorkspaceFamily implements Id { @Override public int hashCode() { return Arrays.hashCode(data); } private  WorkspaceFamily(String[] data); @NonNull static WorkspaceFamily of(@NonNull Id id); @NonNull static WorkspaceFamily parse(@NonNull String input); @Override String get(int index); @Override WorkspaceFamily extend(String tail); @Override WorkspaceFamily parent(); @Override int getCount(); @Override boolean equals(Object obj); @Override int hashCode(); @Override String toString(); @Override String[] toArray(); static final WorkspaceFamily SA_MULTI; static final WorkspaceFamily SA_DOC_X13; static final WorkspaceFamily SA_DOC_TRAMOSEATS; static final WorkspaceFamily SA_SPEC_X13; static final WorkspaceFamily SA_SPEC_TRAMOSEATS; static final WorkspaceFamily MOD_DOC_REGARIMA; static final WorkspaceFamily MOD_DOC_TRAMO; static final WorkspaceFamily MOD_SPEC_REGARIMA; static final WorkspaceFamily MOD_SPEC_TRAMO; static final WorkspaceFamily UTIL_CAL; static final WorkspaceFamily UTIL_VAR; }
@Test public void testHashcode() { assertThat(empty.hashCode()) .isEqualTo(WorkspaceFamily.parse("").hashCode()) .isNotEqualTo(single.hashCode()) .isNotEqualTo(dual.hashCode()); assertThat(single.hashCode()) .isEqualTo(WorkspaceFamily.parse("single").hashCode()) .isNotEqualTo(empty.hashCode()) .isNotEqualTo(dual.hashCode()); assertThat(dual.hashCode()) .isEqualTo(WorkspaceFamily.parse("hello@world").hashCode()) .isNotEqualTo(empty.hashCode()) .isNotEqualTo(single.hashCode()); }