code: public static ConstantSize constant(String encodedValueAndUnit,
              boolean horizontal) {
          String lowerCase = encodedValueAndUnit.toLowerCase(Locale.ENGLISH);
          String trimmed = lowerCase.trim();
          return ConstantSize.valueOf(trimmed, horizontal);
      }
docs: Creates and returns an instance of {@code ConstantSize} from the given encoded size and unit
  description.
  
  @param encodedValueAndUnit value and unit in string representation
  @param horizontal	true for horizontal, false for vertical
  @return a {@code ConstantSize} for the given value and unit