FrequencyData { public Frequency getFrequencyForSource(FrequencySource source) { for (int i = 0; i < size; i++) { if (sources[i] == source) { float value = values[i]; return Frequency.of(source, value); } } return null; } private  FrequencyData(RsId rsId, Collection<Frequency> frequencies); static FrequencyData of(RsId rsId, Collection<Frequency> frequencies); static FrequencyData of(RsId rsId, Frequency frequency); static FrequencyData of(RsId rsId, Frequency... frequency); static FrequencyData of(Frequency frequency); static FrequencyData of(Frequency... frequency); static FrequencyData empty(); RsId getRsId(); Frequency getFrequencyForSource(FrequencySource source); @JsonIgnore boolean isRepresentedInDatabase(); @JsonIgnore boolean hasDbSnpData(); @JsonIgnore boolean hasDbSnpRsID(); @JsonIgnore boolean hasEspData(); @JsonIgnore boolean hasExacData(); @JsonIgnore boolean hasKnownFrequency(); boolean hasFrequencyOverPercentageValue(float maxFreq); List<Frequency> getKnownFrequencies(); @JsonIgnore float getMaxFreq(); float getScore(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString();  }
@Test public void testGetDbSnpMaf() { assertThat(FREQUENCY_DATA.getFrequencyForSource(THOUSAND_GENOMES), equalTo(DBSNP_PASS)); }
@Test public void testGetEspEaMaf() { assertThat(FREQUENCY_DATA.getFrequencyForSource(ESP_EUROPEAN_AMERICAN), equalTo(ESP_EA_PASS)); }
@Test public void testGetEspAaMaf() { assertThat(FREQUENCY_DATA.getFrequencyForSource(ESP_AFRICAN_AMERICAN), equalTo(ESP_AA_PASS)); }
@Test public void testGetEspAllMaf() { assertThat(FREQUENCY_DATA.getFrequencyForSource(ESP_ALL), equalTo(ESP_ALL_PASS)); }