public static <G extends Gene<?, G>, C extends Comparable<? super C>>
	RetryConstraint<G, C> of(final Predicate<? super Phenotype<G, C>> validator) {
		return new RetryConstraint<>(
			validator,
			null,
			DEFAULT_RETRY_COUNT
		);
	}
Return a new constraint with the given {@code validator} and the
{@link #DEFAULT_RETRY_COUNT}.

@param validator the phenotype validator
@param <G> the gene type
@param <C> the fitness value type
@return a new constraint strategy
@throws NullPointerException if the {@code validator} is {@code null}
jenetics/src/main/java/io/jenetics/engine/RetryConstraint.java