redis.clients.jedis.Module Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jredisearch-jedis Show documentation
Show all versions of jredisearch-jedis Show documentation
Jedis is a blazingly small and sane Redis java client. This is a fork of master
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;
}
}