@Test public void testEqualityOfTerms4() { TermId oxycephalyId = TermId.of("HP:0000263"); HpoAnnotation oxycephaly1 = new HpoAnnotation.Builder(oxycephalyId) .onset(HpoOnset.ADULT_ONSET) .frequency(HpoFrequency.ALWAYS_PRESENT.mean(),HpoFrequency.ALWAYS_PRESENT.toString()) .build(); HpoAnnotation oxycephaly2 = new HpoAnnotation.Builder(oxycephalyId) .onset(HpoOnset.ADULT_ONSET) .frequency(HpoFrequency.OCCASIONAL.mean(),HpoFrequency.OCCASIONAL.toString()) .build(); assertNotEquals(oxycephaly1, oxycephaly2); }
@Override public String toString() { return "HpoTermId [termId=" + termId + ", frequency=" + frequency + ", onset=" + onset + "]"; }
HpoAnnotation { @Override public String toString() { return "HpoTermId [termId=" + termId + ", frequency=" + frequency + ", onset=" + onset + "]"; } }
HpoAnnotation { @Override public String toString() { return "HpoTermId [termId=" + termId + ", frequency=" + frequency + ", onset=" + onset + "]"; } HpoAnnotation(TermId termId, double f, String freqString,HpoOnset onset, List<TermId> modifiers, List<String> cites); }
HpoAnnotation { @Override public String toString() { return "HpoTermId [termId=" + termId + ", frequency=" + frequency + ", onset=" + onset + "]"; } HpoAnnotation(TermId termId, double f, String freqString,HpoOnset onset, List<TermId> modifiers, List<String> cites); static HpoAnnotation forTerm(TermId t); static HpoAnnotation parseTerm(String id); String getFrequencyString(); List<String> getCitations(); TermId getTermId(); double getFrequency(); HpoOnset getOnset(); List<TermId> getModifiers(); @Override String toString(); String getIdWithPrefix(); @Override boolean equals(Object that); @Override int hashCode(); int compareTo(HpoAnnotation that); static Builder builder(TermId termId); }
HpoAnnotation { @Override public String toString() { return "HpoTermId [termId=" + termId + ", frequency=" + frequency + ", onset=" + onset + "]"; } HpoAnnotation(TermId termId, double f, String freqString,HpoOnset onset, List<TermId> modifiers, List<String> cites); static HpoAnnotation forTerm(TermId t); static HpoAnnotation parseTerm(String id); String getFrequencyString(); List<String> getCitations(); TermId getTermId(); double getFrequency(); HpoOnset getOnset(); List<TermId> getModifiers(); @Override String toString(); String getIdWithPrefix(); @Override boolean equals(Object that); @Override int hashCode(); int compareTo(HpoAnnotation that); static Builder builder(TermId termId);  }