public static double checkPreconditionD(
    final double value,
    final DoublePredicate predicate,
    final DoubleFunction<String> describer)
  {
    final boolean ok;
    try {
      ok = predicate.test(value);
    } catch (final Throwable e) {
      final Violations violations = singleViolation(failedPredicate(e));
      throw new PreconditionViolationException(
        failedMessage(Double.valueOf(value), violations), e, violations.count());
    }

    return innerCheckD(value, ok, describer);
  }
public static double checkPreconditionD ( final double value , final DoublePredicate predicate , final DoubleFunction < String > describer ) { final boolean ok ; try { ok = predicate . test ( value ) ; } catch ( final Throwable e ) { final Violations violations = singleViolation ( failedPredicate ( e ) ) ; throw new PreconditionViolationException ( failedMessage ( Double . valueOf ( value ) , violations ) , e , violations . count ( ) ) ; } return innerCheckD ( value , ok , describer ) ; }
A {@code double} specialized version of {@link #checkPrecondition(Object,
Predicate, Function)}

@param value     The value
@param predicate The predicate
@param describer The describer of the predicate

@return value

@throws PreconditionViolationException If the predicate is false