@Override
  public int encode(PositionedByteRange dst, Integer val) {
    if (null == val) {
      throw new IllegalArgumentException("Null values not supported.");
    }
    return OrderedBytes.encodeInt32(dst, val, order);
  }
Creates a new 32-bit {@code int} with a fixed-length encoding.
@param order the {@link Order} to use
hbase-common/src/main/java/org/apache/hadoop/hbase/types/OrderedInt32.java