@Override protected Double getValue(com.google.datastore.v1.Value from) { return from.getDoubleValue(); }
(53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getDoubleValue())); break; case 10:
result = result && (java.lang.Double.doubleToLongBits(getDoubleValue()) == java.lang.Double.doubleToLongBits(other.getDoubleValue())); break; case 10:
setDoubleValue(other.getDoubleValue()); break;
@Override protected Double getValue(com.google.datastore.v1.Value from) { return from.getDoubleValue(); }
/** * Return the value as a double. * * @return the value. * @throws IllegalArgumentException if {@code Value} is not a double. */ public double getDouble() { if (!isDouble()) { throw new IllegalArgumentException("Value does not contain a double."); } return value.getDoubleValue(); }
/** * @return the double contained in value * @throws IllegalArgumentException if the value does not contain a double. */ public static double getDouble(Value value) { if (value.getValueTypeCase() != ValueTypeCase.DOUBLE_VALUE) { throw new IllegalArgumentException("Value does not contain a double."); } return value.getDoubleValue(); }
/** * @return the double contained in value * @throws IllegalArgumentException if the value does not contain a double. */ public static double getDouble(Value value) { if (value.getValueTypeCase() != ValueTypeCase.DOUBLE_VALUE) { throw new IllegalArgumentException("Value does not contain a double."); } return value.getDoubleValue(); }
return String.valueOf(value.getIntegerValue()); case DOUBLE_VALUE: return String.valueOf(value.getDoubleValue()); case BOOLEAN_VALUE: return String.valueOf(value.getBooleanValue());
hash = (37 * hash) + DOUBLE_VALUE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getDoubleValue())); break; case 10:
(53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getDoubleValue())); break; case 10:
result = result && (java.lang.Double.doubleToLongBits(getDoubleValue()) == java.lang.Double.doubleToLongBits(other.getDoubleValue())); break; case 10:
case 3: result = result && ( java.lang.Double.doubleToLongBits(getDoubleValue()) == java.lang.Double.doubleToLongBits( other.getDoubleValue())); break; case 10:
setDoubleValue(other.getDoubleValue()); break;
setDoubleValue(other.getDoubleValue()); break;