code: @Override
      public int compareTo(Enhancement o) {
          if (this.equals(o))
              return 0;
  
          if (this.confidence > o.getConfidence())
              return -1;
          else if (this.confidence < o.getConfidence())
              return 1;
          else
              return 0;
      }
docs: /*
  (non-Javadoc)
  @see java.lang.Comparable#compareTo(java.lang.Object)