org.opencb.biodata.models.variant.annotation.Frequency Maven / Gradle / Ivy
The newest version!
/*
*
*
*/
package org.opencb.biodata.models.variant.annotation;
import java.util.Objects;
/**
*
* @author Cristina Yenyxe Gonzalez Garcia <[email protected]>
*/
@Deprecated
public class Frequency {
private String study;
private String superPopulation;
private String population;
private float frequency;
Frequency() { }
public Frequency(String study, String superPopulation, String population, float frequency) {
this.study = study;
this.superPopulation = superPopulation;
this.population = population;
this.frequency = frequency;
}
public Frequency(String superPopulation, String population, float frequency) {
this.superPopulation = superPopulation;
this.population = population;
this.frequency = frequency;
}
public String getSuperPopulation() {
return superPopulation;
}
public void setSuperPopulation(String superPopulation) {
this.superPopulation = superPopulation;
}
public String getPopulation() {
return population;
}
public void setPopulation(String population) {
this.population = population;
}
public float getFrequency() {
return frequency;
}
public void setFrequency(float frequency) {
this.frequency = frequency;
}
public String getStudy() {
return study;
}
public void setStudy(String study) {
this.study = study;
}
@Override
public int hashCode() {
int hash = 7;
hash = 67 * hash + Objects.hashCode(this.superPopulation);
hash = 67 * hash + Objects.hashCode(this.population);
return hash;
}
@Override
public boolean equals(Object obj) {
if (obj == null) {
return false;
}
if (getClass() != obj.getClass()) {
return false;
}
final Frequency other = (Frequency) obj;
if (!Objects.equals(this.superPopulation, other.superPopulation)) {
return false;
}
if (!Objects.equals(this.population, other.population)) {
return false;
}
if (!Objects.equals(this.study, other.study)) {
return false;
}
return true;
}
}