public static < E extends Enum < E > > Flags < E > valueOf ( Class < E > type , String values ) { Flags < E > flags = new Flags < E > ( type ) ; for ( String text : values . trim ( ) . split ( MULTI_VALUE_SEPARATOR ) ) { flags . set ( Enum . valueOf ( type , text ) ) ; } return flags ; }
Returns a Flags with a value represented by a string of concatenated enum literal names separated by any combination of a comma a colon or a white space .