private Item newFloat ( final float value ) { Item result = get ( key . set ( FLOAT , value ) ) ; if ( result == null ) { pool . putByte ( FLOAT ) . putInt ( Float . floatToIntBits ( value ) ) ; result = new Item ( poolIndex ++ , key ) ; put ( result ) ; } return result ; }
Adds a float to the constant pool of the class being build . Does nothing if the constant pool already contains a similar item .