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

com.github.rutledgepaulv.rqe.pipes.DefaultQueryBuildingPipe Maven / Gradle / Ivy

The newest version!
/*
 *  com.github.rutledgepaulv.rqe.pipes.DefaultQueryBuildingPipe
 *  *
 *  * Copyright (C) 2016 Paul Rutledge 
 *  *
 *  * This software may be modified and distributed under the terms
 *  * of the MIT license.  See the LICENSE file for details.
 *
 */

package com.github.rutledgepaulv.rqe.pipes;

import com.github.rutledgepaulv.qbuilders.builders.GeneralQueryBuilder;
import com.github.rutledgepaulv.qbuilders.conditions.Condition;
import com.github.rutledgepaulv.qbuilders.nodes.AbstractNode;
import com.github.rutledgepaulv.rqe.adapters.TreeToConditionAdapter;

import java.util.function.Function;

public class DefaultQueryBuildingPipe implements Function> {

    @Override
    public Condition apply(AbstractNode abstractNode) {
        return new TreeToConditionAdapter().apply(abstractNode);
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy