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

com.github.wz2cool.dynamic.builder.opeartor.In Maven / Gradle / Ivy

There is a newer version: 3.2.32
Show newest version
package com.github.wz2cool.dynamic.builder.opeartor;

import com.github.wz2cool.dynamic.FilterOperator;

import java.util.*;

/**
 * @author Frank
 */
public class In implements IMultipleValueFilterOperator {

    private List value;

    public In(T[] values) {
        if (Objects.isNull(values)) {
            this.value = new ArrayList<>();
        } else {
            this.value = Arrays.asList(values);
        }
    }

    public In(Collection values) {
        if (Objects.isNull(values)) {
            this.value = new ArrayList<>();
        } else {
            this.value = new ArrayList<>(values);
        }
    }

    @Override
    public FilterOperator getOperator() {
        return FilterOperator.IN;
    }

    @Override
    public List getValue() {
        return this.value;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy