Adds a float to the constant pool of the class being build. Does nothing if the constant pool already contains a similar item. @param value the float value. @return a new or already existing float item.
(final float value)
| 806 | */ |
| 807 | |
| 808 | private Item newFloat (final float value) { |
| 809 | key.set(value); |
| 810 | Item result = get(key); |
| 811 | if (result == null) { |
| 812 | pool.put1(FLOAT).put4(Float.floatToIntBits(value)); |
| 813 | result = new Item(index++, key); |
| 814 | put(result); |
| 815 | } |
| 816 | return result; |
| 817 | } |
| 818 | |
| 819 | /** |
| 820 | * Adds a long to the constant pool of the class being build. Does nothing if |