All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.sebhoss.reguloj.FirstWinsRuleEngine Maven / Gradle / Ivy

/*
 * Copyright © 2010 Sebastian Hoß 
 * This work is free. You can redistribute it and/or modify it under the
 * terms of the Do What The Fuck You Want To Public License, Version 2,
 * as published by Sam Hocevar. See http://www.wtfpl.net/ for more details.
 */
package com.github.sebhoss.reguloj;

import java.util.Set;

class FirstWinsRuleEngine> extends AbstractRuleEngine {

    @Override
    public void infer(final CONTEXT context, final Set> rules) {
        for (final Rule rule : rules) {
            if (rule.run(context)) {
                break;
            }
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy