
com.aerospike.jdbc.model.SchemaTableName Maven / Gradle / Ivy
package com.aerospike.jdbc.model;
import java.util.Objects;
public class SchemaTableName {
private final String schemaName;
private final String tableName;
public SchemaTableName(String schemaName, String tableName) {
this.schemaName = schemaName;
this.tableName = tableName;
}
public String getSchemaName() {
return schemaName;
}
public String getTableName() {
return tableName;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
SchemaTableName that = (SchemaTableName) o;
return Objects.equals(schemaName, that.schemaName) &&
Objects.equals(tableName, that.tableName);
}
@Override
public int hashCode() {
return Objects.hash(schemaName, tableName);
}
@Override
public String toString() {
return String.format("%s(%s, %s)", getClass().getSimpleName(), schemaName, tableName);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy