@Test public void schemaEquality_same_equal() { PrimaryKeyBundle bundle = new PrimaryKeyBundle(true, Arrays.asList("foo", "bar")); PrimaryKeyBundle other = new PrimaryKeyBundle(true, Arrays.asList("foo", "bar")); assertThat(bundle.isSchemaEqual(other), is(true)); }
@Override public boolean isSchemaEqual(PrimaryKeyBundle other) { return mColumnNames.equals(other.mColumnNames) && mAutoGenerate == other.mAutoGenerate; }
PrimaryKeyBundle implements SchemaEquality<PrimaryKeyBundle> { @Override public boolean isSchemaEqual(PrimaryKeyBundle other) { return mColumnNames.equals(other.mColumnNames) && mAutoGenerate == other.mAutoGenerate; } }
PrimaryKeyBundle implements SchemaEquality<PrimaryKeyBundle> { @Override public boolean isSchemaEqual(PrimaryKeyBundle other) { return mColumnNames.equals(other.mColumnNames) && mAutoGenerate == other.mAutoGenerate; } PrimaryKeyBundle(boolean autoGenerate, List<String> columnNames); }
PrimaryKeyBundle implements SchemaEquality<PrimaryKeyBundle> { @Override public boolean isSchemaEqual(PrimaryKeyBundle other) { return mColumnNames.equals(other.mColumnNames) && mAutoGenerate == other.mAutoGenerate; } PrimaryKeyBundle(boolean autoGenerate, List<String> columnNames); List<String> getColumnNames(); boolean isAutoGenerate(); @Override boolean isSchemaEqual(PrimaryKeyBundle other); }
PrimaryKeyBundle implements SchemaEquality<PrimaryKeyBundle> { @Override public boolean isSchemaEqual(PrimaryKeyBundle other) { return mColumnNames.equals(other.mColumnNames) && mAutoGenerate == other.mAutoGenerate; } PrimaryKeyBundle(boolean autoGenerate, List<String> columnNames); List<String> getColumnNames(); boolean isAutoGenerate(); @Override boolean isSchemaEqual(PrimaryKeyBundle other);  }