@Override
  public boolean equals(Object rhs) {
    if (rhs == this) {
      return true;
    }
    if (rhs == null || rhs.getClass() != getClass()) {
      return false;
    }
    return this.getStrippedValue().equals(((HiveChar) rhs).getStrippedValue());
  }
Set char value, padding or truncating the value to the size of len parameter.
common/src/java/org/apache/hadoop/hive/common/type/HiveChar.java