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

redis.clients.jedis.Module Maven / Gradle / Ivy

The newest version!
package redis.clients.jedis;

public class Module {
  private String name;
  private int version;

  public Module(String name, int version) {
    this.name = name;
    this.version = version;
  }


  public String getName() {
    return name;
  }

  public int getVersion() {
    return version;
  }

  @Override
  public boolean equals(Object o) {
    if (this == o) return true;
    if (o == null || getClass() != o.getClass()) return false;

    Module module = (Module) o;

    if (version != module.version) return false;
    return !(name != null ? !name.equals(module.name) : module.name != null);

  }

  @Override
  public int hashCode() {
    int result = name != null ? name.hashCode() : 0;
    result = 31 * result + version;
    return result;
  }


}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy