All Downloads are FREE. Search and download functionalities are using the official Maven repository.

mockit.asm.constantPool.FloatItem Maven / Gradle / Ivy

package mockit.asm.constantPool;

import javax.annotation.*;

import static mockit.asm.jvmConstants.ConstantPoolTypes.*;

public final class FloatItem extends IntValueItem
{
   public FloatItem(@Nonnegative int index) {
      super(index);
      type = FLOAT;
   }

   FloatItem(@Nonnegative int index, @Nonnull FloatItem item) { super(index, item); }

   /**
    * Sets the value of this item.
    */
   public void set(float value) {
      int intValue = Float.floatToRawIntBits(value);
      setValue(intValue);
   }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy