public static void checkInvariant(
    final boolean condition,
    final String message)
    throws InvariantViolationException
  {
    if (!condition) {
      final Violations violations = singleViolation(message);
      throw new InvariantViolationException(
        failedMessage("<unspecified>", violations), null, violations.count());
    }
  }
public static void checkInvariant ( final boolean condition , final String message ) throws InvariantViolationException { if ( ! condition ) { final Violations violations = singleViolation ( message ) ; throw new InvariantViolationException ( failedMessage ( "<unspecified>" , violations ) , null , violations . count ( ) ) ; } }
A specialized version of {@link #checkInvariant(Object, boolean, Function)}
that does not mention an input value.

@param condition The predicate
@param message   The predicate description

@throws InvariantViolationException Iff {@code predicate == false}