return CstChar.make((Character) value); } else if (value instanceof Double) { return CstDouble.make(Double.doubleToLongBits((Double) value)); } else if (value instanceof Float) { return CstFloat.make(Float.floatToIntBits((Float) value));
/** * Makes an instance for the given value. This may (but does not * necessarily) return an already-allocated instance. * * @param bits the {@code double} value as {@code long} bits */ public static CstDouble make(long bits) { /* * Note: Javadoc notwithstanding, this implementation always * allocates. */ return new CstDouble(bits); }
/** * Gets the {@code double} value. * * @return the value */ public double getValue() { return Double.longBitsToDouble(getLongBits()); } }
/** * Gets the {@code double} value. * * @return the value */ public double getValue() { return Double.longBitsToDouble(getLongBits()); } }
return CstChar.make((Character) value); } else if (value instanceof Double) { return CstDouble.make(Double.doubleToLongBits((Double) value)); } else if (value instanceof Float) { return CstFloat.make(Float.floatToIntBits((Float) value));
/** * Makes an instance for the given value. This may (but does not * necessarily) return an already-allocated instance. * * @param bits the {@code double} value as {@code long} bits */ public static CstDouble make(long bits) { /* * Note: Javadoc notwithstanding, this implementation always * allocates. */ return new CstDouble(bits); }
/** * Gets the {@code double} value. * * @return the value */ public double getValue() { return Double.longBitsToDouble(getLongBits()); } }
return CstChar.make((Character) value); } else if (value instanceof Double) { return CstDouble.make(Double.doubleToLongBits((Double) value)); } else if (value instanceof Float) { return CstFloat.make(Float.floatToIntBits((Float) value));
/** * Makes an instance for the given value. This may (but does not * necessarily) return an already-allocated instance. * * @param bits the {@code double} value as {@code long} bits */ public static CstDouble make(long bits) { /* * Note: Javadoc notwithstanding, this implementation always * allocates. */ return new CstDouble(bits); }
/** * Gets the {@code double} value. * * @return the value */ public double getValue() { return Double.longBitsToDouble(getLongBits()); } }
return CstChar.make((Character) value); } else if (value instanceof Double) { return CstDouble.make(Double.doubleToLongBits((Double) value)); } else if (value instanceof Float) { return CstFloat.make(Float.floatToIntBits((Float) value));
/** * Makes an instance for the given value. This may (but does not * necessarily) return an already-allocated instance. * * @param bits the {@code double} value as {@code long} bits */ public static CstDouble make(long bits) { /* * Note: Javadoc notwithstanding, this implementation always * allocates. */ return new CstDouble(bits); }
/** * Gets the {@code double} value. * * @return the value */ public double getValue() { return Double.longBitsToDouble(getLongBits()); } }
cst = CstDouble.make(bits); break;
/** * Makes an instance for the given value. This may (but does not * necessarily) return an already-allocated instance. * * @param bits the {@code double} value as {@code long} bits */ public static CstDouble make(long bits) { /* * Note: Javadoc notwithstanding, this implementation always * allocates. */ return new CstDouble(bits); }
/** * Gets the {@code double} value. * * @return the value */ public double getValue() { return Double.longBitsToDouble(getLongBits()); } }
cst = CstDouble.make(bits); break;
/** * Makes an instance for the given value. This may (but does not * necessarily) return an already-allocated instance. * * @param bits the {@code double} value as {@code long} bits */ public static CstDouble make(long bits) { /* * Note: Javadoc notwithstanding, this implementation always * allocates. */ return new CstDouble(bits); }
/** * Gets the {@code double} value. * * @return the value */ public double getValue() { return Double.longBitsToDouble(getLongBits()); } }
cst = CstDouble.make(bits); break;