return DoubleType.instance.decompose(Double.valueOf(value.toString()));
public ByteBuffer fromString(String source) throws MarshalException { // Return an empty ByteBuffer for an empty string. if (source.isEmpty()) return ByteBufferUtil.EMPTY_BYTE_BUFFER; Double d; try { d = Double.valueOf(source); } catch (NumberFormatException e1) { throw new MarshalException(String.format("unable to coerce '%s' to a double", source), e1); } return decompose(d); }
public ByteBuffer fromString(String source) throws MarshalException { // Return an empty ByteBuffer for an empty string. if (source.isEmpty()) return ByteBufferUtil.EMPTY_BYTE_BUFFER; Double d; try { d = Double.valueOf(source); } catch (NumberFormatException e1) { throw new MarshalException(String.format("Unable to make double from '%s'", source), e1); } return decompose(d); }
public ByteBuffer fromString(String source) throws MarshalException { // Return an empty ByteBuffer for an empty string. if (source.isEmpty()) return ByteBufferUtil.EMPTY_BYTE_BUFFER; Double d; try { d = Double.valueOf(source); } catch (NumberFormatException e1) { throw new MarshalException(String.format("Unable to make double from '%s'", source), e1); } return decompose(d); }
public ByteBuffer fromString(String source) throws MarshalException { // Return an empty ByteBuffer for an empty string. if (source.isEmpty()) return ByteBufferUtil.EMPTY_BYTE_BUFFER; Double d; try { d = Double.valueOf(source); } catch (NumberFormatException e1) { throw new MarshalException(String.format("Unable to make double from '%s'", source), e1); } return decompose(d); }
public ByteBuffer fromString(String source) throws MarshalException { // Return an empty ByteBuffer for an empty string. if (source.isEmpty()) return ByteBufferUtil.EMPTY_BYTE_BUFFER; Double d; try { d = Double.valueOf(source); } catch (NumberFormatException e1) { throw new MarshalException(String.format("Unable to make double from '%s'", source), e1); } return decompose(d); }
return DoubleType.instance.decompose((double) FloatType.instance.compose(term));
return DoubleType.instance.decompose((double) FloatType.instance.compose(term));
return DoubleType.instance.decompose((double) FloatType.instance.compose(term));
return FloatType.instance.decompose((Float)o); if (o instanceof Double) return DoubleType.instance.decompose((Double)o); if (o instanceof UUID) return ByteBuffer.wrap(UUIDGen.decompose((UUID) o));
case DOUBLE: final Double doubleData = (Double) rawData; bb = DoubleType.instance.decompose(doubleData); break; case STRING: