FrequencyData { public boolean hasFrequencyOverPercentageValue(float maxFreq) { for (int i = 0; i < size; i++) { if (values[i] > maxFreq) { return true; } } return false; } 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 testHasFrequencyOverPercentageValue() { float maxFreq = 0.05f; Frequency upper = Frequency.of(UNKNOWN, maxFreq); Frequency lower = Frequency.of(UK10K, 0.0001f); FrequencyData instance = FrequencyData.of(upper, lower); assertThat(instance.hasFrequencyOverPercentageValue(maxFreq - 0.01f), is(true)); assertThat(instance.hasFrequencyOverPercentageValue(maxFreq + 0.01f), is(false)); }