@Override public boolean equals(Object obj) { if (obj instanceof TupleTypeInfo) { @SuppressWarnings("unchecked") TupleTypeInfo<T> other = (TupleTypeInfo<T>) obj; return other.canEqual(this) && super.equals(other) && Arrays.equals(fieldNames, other.fieldNames); } else { return false; } }
/** * The equals method does only check for field types. Field names do not matter during * runtime so we can consider rows with the same field types as equal. * Use {@link RowTypeInfo#schemaEquals(Object)} for checking schema-equivalence. */ @Override public boolean equals(Object obj) { if (obj instanceof RowTypeInfo) { final RowTypeInfo other = (RowTypeInfo) obj; return other.canEqual(this) && super.equals(other); } else { return false; } }
boolean anonymousVsTuple = anonymousTupleTypeInfo.equals(tupleTypeInfo);
@Override public boolean equals(Object obj) { if (obj instanceof TupleTypeInfo) { @SuppressWarnings("unchecked") TupleTypeInfo<T> other = (TupleTypeInfo<T>) obj; return other.canEqual(this) && super.equals(other) && Arrays.equals(fieldNames, other.fieldNames); } else { return false; } }
@Override public boolean equals(Object obj) { if (obj instanceof TupleTypeInfo) { @SuppressWarnings("unchecked") TupleTypeInfo<T> other = (TupleTypeInfo<T>) obj; return other.canEqual(this) && super.equals(other) && Arrays.equals(fieldNames, other.fieldNames); } else { return false; } }
/** * The equals method does only check for field types. Field names do not matter during * runtime so we can consider rows with the same field types as equal. * Use {@link RowTypeInfo#schemaEquals(Object)} for checking schema-equivalence. */ @Override public boolean equals(Object obj) { if (obj instanceof RowTypeInfo) { final RowTypeInfo other = (RowTypeInfo) obj; return other.canEqual(this) && super.equals(other); } else { return false; } }