public static PaperSize lookup ( String word ) { for ( PaperSize paper : values ) { if ( paper . name . compareToIgnoreCase ( word ) == 0 ) { return paper ; } } return null ; }
Sees if the specified work matches any of the units full name or short name .