com.scalar.db.sql.common.metadata.AbstractNamespaceMetadata Maven / Gradle / Ivy
package com.scalar.db.sql.common.metadata;
import com.google.common.base.MoreObjects;
import com.scalar.db.sql.metadata.NamespaceMetadata;
import java.util.Objects;
public abstract class AbstractNamespaceMetadata implements NamespaceMetadata {
@Override
public String toString() {
return MoreObjects.toStringHelper(this).add("name", getName()).toString();
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (!(o instanceof NamespaceMetadata)) {
return false;
}
NamespaceMetadata that = (NamespaceMetadata) o;
return Objects.equals(getName(), that.getName());
}
@Override
public int hashCode() {
return Objects.hash(getName());
}
}