Ejemplo n.º 1
0
 @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();
 }
Ejemplo n.º 2
0
 @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;
 }