com.github.wz2cool.dynamic.builder.opeartor.In Maven / Gradle / Ivy
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