public static TYPE_1 METHOD_1 ( java.lang.String index ) { TYPE_1 [ ] values = TYPE_1 . values ( ) ; for ( TYPE_1 value : values ) { if ( index . equals ( value . METHOD_2 ( ) ) ) { return value ; } } throw new TYPE_2 ( ( STRING_1 + index ) ) ; }

public static TYPE_1 METHOD_1 ( java.lang.String index ) { TYPE_1 [ ] values = TYPE_1 . values ( ) ; for ( TYPE_1 value : values ) { if ( index . equals ( value . toString ( ) ) ) { return value ; } } throw new TYPE_2 ( ( STRING_1 + index ) ) ; }
