All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.scalar.db.sql.common.metadata.AbstractNamespaceMetadata Maven / Gradle / Ivy

There is a newer version: 3.14.0
Show newest version
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());
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy