WorkspaceFamily implements Id { @NonNull public static WorkspaceFamily of(@NonNull Id id) { if (id instanceof WorkspaceFamily) { return (WorkspaceFamily) id; } if (id.getCount() == 0) { return EMPTY; } return new WorkspaceFamily(id.toArray()); } 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 @SuppressWarnings("null") public void testOf() { assertThatThrownBy(() -> WorkspaceFamily.of(null)).isInstanceOf(NullPointerException.class); assertThat(WorkspaceFamily.of(empty)).isSameAs(empty); assertThat(WorkspaceFamily.of(new LinearId())).isEqualTo(empty); assertThat(WorkspaceFamily.of(new LinearId("hello", "world"))).isEqualTo(dual); assertThat(LinearId.of(dual)).isEqualTo(new LinearId("hello", "world")); }