@Test public void schemaEquality_same_equal() { FieldBundle bundle = new FieldBundle("foo", "foo", "text", false, null); FieldBundle copy = new FieldBundle("foo", "foo", "text", false, null); assertThat(bundle.isSchemaEqual(copy), is(true)); }
@Override public boolean isSchemaEqual(FieldBundle other) { if (mNonNull != other.mNonNull) return false; if (mColumnName != null ? !mColumnName.equals(other.mColumnName) : other.mColumnName != null) { return false; } if (mDefaultValue != null ? !mDefaultValue.equals(other.mDefaultValue) : other.mDefaultValue != null) { return false; } return mAffinity != null ? mAffinity.equals(other.mAffinity) : other.mAffinity == null; }
FieldBundle implements SchemaEquality<FieldBundle> { @Override public boolean isSchemaEqual(FieldBundle other) { if (mNonNull != other.mNonNull) return false; if (mColumnName != null ? !mColumnName.equals(other.mColumnName) : other.mColumnName != null) { return false; } if (mDefaultValue != null ? !mDefaultValue.equals(other.mDefaultValue) : other.mDefaultValue != null) { return false; } return mAffinity != null ? mAffinity.equals(other.mAffinity) : other.mAffinity == null; } }
FieldBundle implements SchemaEquality<FieldBundle> { @Override public boolean isSchemaEqual(FieldBundle other) { if (mNonNull != other.mNonNull) return false; if (mColumnName != null ? !mColumnName.equals(other.mColumnName) : other.mColumnName != null) { return false; } if (mDefaultValue != null ? !mDefaultValue.equals(other.mDefaultValue) : other.mDefaultValue != null) { return false; } return mAffinity != null ? mAffinity.equals(other.mAffinity) : other.mAffinity == null; } @Deprecated  FieldBundle(String fieldPath, String columnName, String affinity, boolean nonNull);  FieldBundle(String fieldPath, String columnName, String affinity, boolean nonNull,
            String defaultValue); }
FieldBundle implements SchemaEquality<FieldBundle> { @Override public boolean isSchemaEqual(FieldBundle other) { if (mNonNull != other.mNonNull) return false; if (mColumnName != null ? !mColumnName.equals(other.mColumnName) : other.mColumnName != null) { return false; } if (mDefaultValue != null ? !mDefaultValue.equals(other.mDefaultValue) : other.mDefaultValue != null) { return false; } return mAffinity != null ? mAffinity.equals(other.mAffinity) : other.mAffinity == null; } @Deprecated  FieldBundle(String fieldPath, String columnName, String affinity, boolean nonNull);  FieldBundle(String fieldPath, String columnName, String affinity, boolean nonNull,
            String defaultValue); String getFieldPath(); String getColumnName(); String getAffinity(); boolean isNonNull(); String getDefaultValue(); @Override boolean isSchemaEqual(FieldBundle other); }
FieldBundle implements SchemaEquality<FieldBundle> { @Override public boolean isSchemaEqual(FieldBundle other) { if (mNonNull != other.mNonNull) return false; if (mColumnName != null ? !mColumnName.equals(other.mColumnName) : other.mColumnName != null) { return false; } if (mDefaultValue != null ? !mDefaultValue.equals(other.mDefaultValue) : other.mDefaultValue != null) { return false; } return mAffinity != null ? mAffinity.equals(other.mAffinity) : other.mAffinity == null; } @Deprecated  FieldBundle(String fieldPath, String columnName, String affinity, boolean nonNull);  FieldBundle(String fieldPath, String columnName, String affinity, boolean nonNull,
            String defaultValue); String getFieldPath(); String getColumnName(); String getAffinity(); boolean isNonNull(); String getDefaultValue(); @Override boolean isSchemaEqual(FieldBundle other);  }