code: public int compareTo(Object o) {
      int thisValue = this.value;
      int thatValue = ((ByteWritable)o).value;
      return (thisValue < thatValue ? -1 : (thisValue == thatValue ? 0 : 1));
    }
docs: Compares two ByteWritables.