public void ifEvaluated(final Consumer<? super T> action) {
		requireNonNull(action);

		final boolean evaluated;
		final T value;
		synchronized (this) {
			evaluated = _evaluated;
			value = _value;
		}

		if (evaluated) {
			action.accept(value);
		}
	}
If a value is evaluated, performs the given action with the value,
otherwise does nothing.

@since 8.1

@param action the action to be performed if a value is evaluated
jenetics/src/main/java/io/jenetics/internal/util/Lazy.java