public static double getDouble(AnnotationValue value) {
    return valueOfType(value, Double.class);
  }
Returns the value as a double.

@throws IllegalArgumentException if the value is not a double.
common/src/main/java/com/google/auto/common/AnnotationValues.java