// Path: src/main/java/com/github/brunodles/retrofunctions/BooleanSupplier.java
// @FunctionalInterface
// public interface BooleanSupplier {
// 
//     /**
//      * Gets a result.
//      *
//      * @return a result
//      */
//     boolean getAsBoolean();
// }
// 
// Path: src/main/java/com/github/brunodles/retrofunctions/IntConsumer.java
// @FunctionalInterface
// public interface IntConsumer {
// 
//     /**
//      * Performs this operation on the given argument.
//      *
//      * @param value the input argument
//      */
//     void accept(int value);
// 
// }


import com.github.brunodles.retrofunctions.BooleanSupplier;
import com.github.brunodles.retrofunctions.IntConsumer;
package com.github.brunodles.javavalidation.matcher;


/**
 * Created by bruno on 03/06/16.
 */
class Common {

    static void _if(BooleanSupplier condition, IntConsumer block, int error) {
        try {
            if (condition.getAsBoolean()) block.accept(error);
// Path: src/main/java/com/github/brunodles/retrofunctions/BooleanSupplier.java
// @FunctionalInterface
// public interface BooleanSupplier {
// 
//     /**
//      * Gets a result.
//      *
//      * @return a result
//      */
//     boolean getAsBoolean();
// }
// 
// Path: src/main/java/com/github/brunodles/retrofunctions/IntConsumer.java
// @FunctionalInterface
// public interface IntConsumer {
// 
//     /**
//      * Performs this operation on the given argument.
//      *
//      * @param value the input argument
//      */
//     void accept(int value);
// 
// }


// Path: src/main/java/com/github/brunodles/javavalidation/matcher/Common.java
import com.github.brunodles.retrofunctions.BooleanSupplier;
import com.github.brunodles.retrofunctions.IntConsumer;

package com.github.brunodles.javavalidation.matcher;


/**
 * Created by bruno on 03/06/16.
 */
class Common {

    static void _if(BooleanSupplier condition, IntConsumer block, int error) {
        try {
            if (condition.getAsBoolean()) block.accept(error);
        } catch (Exception e) {