@Test public void uninitializedValueShouldReturnNaNOnGet() { Value victim = new Value(); assertTrue("An Uninitialized Value should return NaN on getValue().", Double.isNaN(victim.getValue())); }
public final double getValue() { if (count != 0) { return sum / (double) count; } if (hasInterpolated) { return interpolated; } return Double.NaN; }
Value { public final double getValue() { if (count != 0) { return sum / (double) count; } if (hasInterpolated) { return interpolated; } return Double.NaN; } }
Value { public final double getValue() { if (count != 0) { return sum / (double) count; } if (hasInterpolated) { return interpolated; } return Double.NaN; }  }
Value { public final double getValue() { if (count != 0) { return sum / (double) count; } if (hasInterpolated) { return interpolated; } return Double.NaN; }  final double getValue(); final double getSum(); final long getCount(); final void add(final double value); final void addInterpolated(final double value); final boolean valueIsInterpolated(); final void remove(final double value); }
Value { public final double getValue() { if (count != 0) { return sum / (double) count; } if (hasInterpolated) { return interpolated; } return Double.NaN; }  final double getValue(); final double getSum(); final long getCount(); final void add(final double value); final void addInterpolated(final double value); final boolean valueIsInterpolated(); final void remove(final double value);  }