protected void convertAll ( ) { if ( converted ) return ; for ( java . util . Map . Entry < Object , Object > e : underlying . entrySet ( ) ) { if ( e . getValue ( ) instanceof Number ) super . put ( e . getKey ( ) , enumClass . getEnumConstants ( ) [ ( ( Number ) e . getValue ( ) ) . intValue ( ) ] ) ; else super . put ( e . getKey ( ) , Enum . valueOf ( enumClass , e . getValue ( ) . toString ( ) ) ) ; } converted = true ; }
Converts all the items