@Test public void testEquals() { assertThat(EMPTY).isEqualTo(CubeId.root()); assertThat(EMPTY).isNotEqualTo(null); assertThat(EMPTY).isNotEqualTo(SECTOR_REGION); assertThat(SECTOR_REGION).isEqualTo(CubeId.root("sector", "region")); assertThat(SECTOR_REGION).isNotEqualTo(INDUSTRY); }
@Override public boolean equals(Object obj) { return this == obj || (obj instanceof CubeId && equals((CubeId) obj)); }
CubeId { @Override public boolean equals(Object obj) { return this == obj || (obj instanceof CubeId && equals((CubeId) obj)); } }
CubeId { @Override public boolean equals(Object obj) { return this == obj || (obj instanceof CubeId && equals((CubeId) obj)); } private  CubeId(@NonNull String[] dimensionIds, @NonNull String[] dimensionsValues); }
CubeId { @Override public boolean equals(Object obj) { return this == obj || (obj instanceof CubeId && equals((CubeId) obj)); } private  CubeId(@NonNull String[] dimensionIds, @NonNull String[] dimensionsValues); @NonNull static CubeId root(@NonNull String... dimensionIds); @NonNull static CubeId root(@NonNull List<String> dimensionIds); @NonNegative int getLevel(); @NonNegative int getMaxLevel(); @NonNull String getDimensionValue(@NonNegative int index); @NonNull Stream<String> getDimensionValueStream(); @NonNull String getDimensionId(@NonNegative int index); @NonNegative int getDepth(); boolean isRoot(); boolean isSeries(); boolean isVoid(); @NonNull CubeId child(@NonNull String... dimensionValues); boolean isAncestorOf(@NonNull CubeId input); @Override String toString(); @Override boolean equals(Object obj); @Override int hashCode(); }
CubeId { @Override public boolean equals(Object obj) { return this == obj || (obj instanceof CubeId && equals((CubeId) obj)); } private  CubeId(@NonNull String[] dimensionIds, @NonNull String[] dimensionsValues); @NonNull static CubeId root(@NonNull String... dimensionIds); @NonNull static CubeId root(@NonNull List<String> dimensionIds); @NonNegative int getLevel(); @NonNegative int getMaxLevel(); @NonNull String getDimensionValue(@NonNegative int index); @NonNull Stream<String> getDimensionValueStream(); @NonNull String getDimensionId(@NonNegative int index); @NonNegative int getDepth(); boolean isRoot(); boolean isSeries(); boolean isVoid(); @NonNull CubeId child(@NonNull String... dimensionValues); boolean isAncestorOf(@NonNull CubeId input); @Override String toString(); @Override boolean equals(Object obj); @Override int hashCode();  }