private Size parseSize(String token){
  if (token.startsWith("[") && token.endsWith("]")) {
    return parseBoundedSize(token);
  }
  if (token.startsWith("max(") && token.endsWith(")")) {
    return parseOldBoundedSize(token,false);
  }
  if (token.startsWith("min(") && token.endsWith(")")) {
    return parseOldBoundedSize(token,true);
  }
  return parseAtomicSize(token);
}

private Size parseSize ( String token ) { if ( token . startsWith ( "[" ) && token . endsWith ( "]" ) ) { return parseBoundedSize ( token ) ; } if ( token . startsWith ( "max(" ) && token . endsWith ( ")" ) ) { return parseOldBoundedSize ( token , false ) ; } if ( token . startsWith ( "min(" ) && token . endsWith ( ")" ) ) { return parseOldBoundedSize ( token , true ) ; } return parseAtomicSize ( token ) ; }
parses an encoded size spec and returns the size .
