@Override public boolean equals(Object that) { if (this == that) { return true; } if (!(that instanceof ArrayType)) { return false; } ArrayType thatArrayType = (ArrayType) that; return this.baseType.equals(thatArrayType.baseType) && this.arrayInfo.equals(thatArrayType.arrayInfo); }