@Override public int compareTo(Object t) { VariantRecord that = (VariantRecord) t; return new CompareToBuilder() .append(getReference(), that.getReference()) .append(getPosition(), that.getPosition()) .append(getRefBases(), that.getRefBases()) .append(getAltAlleles(), that.getAltAlleles()) .toComparison(); }
@Override public boolean equals(Object t) { if (t instanceof VariantRecord) { VariantRecord that = (VariantRecord) t; return new EqualsBuilder() .append(getReference(), that.getReference()) .append(getPosition(), that.getPosition()) .append(getRefBases(), that.getRefBases()) .append(getAltAlleles(), that.getAltAlleles()) .isEquals(); } return false; }