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 .