@Nullable
  public static ECSSUnit getMatchingUnitInclPercentage (@Nonnull final String sCSSValue)
  {
    ValueEnforcer.notNull (sCSSValue, "CSSValue");
    // Search units, the ones with the longest names come first
    return s_aNameToUnitMap.findFirstValue (aEntry -> sCSSValue.endsWith (aEntry.getKey ()));
  }
@ Nullable public static ECSSUnit getMatchingUnitInclPercentage ( @ Nonnull final String sCSSValue ) { ValueEnforcer . notNull ( sCSSValue , "CSSValue" ) ; return s_aNameToUnitMap . findFirstValue ( aEntry -> sCSSValue . endsWith ( aEntry . getKey ( ) ) ) ; }
Try to find the unit that is used in the specified values. This check is
done using "endsWith" so you have to make sure, that no trailing spaces are
contained in the passed value. This check includes a check for percentage
values (e.g. <code>10%</code>)

@param sCSSValue
The value to check. May not be <code>null</code>.
@return <code>null</code> if no matching unit from {@link ECSSUnit} was
found.
@see #getMatchingUnitExclPercentage(String)