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

com.skynet.sql.core.BaseContainerCriteria Maven / Gradle / Ivy

package com.skynet.sql.core;

import java.util.ArrayList;
import java.util.List;

public abstract class BaseContainerCriteria implements ContainerCriteria{
    protected List inners;

    @Override
    public BaseContainerCriteria append(Criteria pCriteria) {
        if (pCriteria == null){
            return this;
        }
        if (inners == null){
            inners = new ArrayList<>();
        }
        inners.add(pCriteria);
        return this;
    }

    public  boolean isEmpty(){
        return  inners == null || inners.size() == 0;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy