com.ly.mybatis.mapperservice.service.ExcelFieldSelector Maven / Gradle / Ivy
The newest version!
package com.ly.mybatis.mapperservice.service;
import com.baomidou.mybatisplus.core.toolkit.support.SFunction;
import com.ly.mybatis.mapperservice.table.lambda.LambdaUtil;
import java.util.Collection;
import java.util.function.Supplier;
public class ExcelFieldSelector {
private String name;
private String defaultValue;
private Supplier> supplier;
public static ExcelFieldSelector of(
SFunction name,
String defaultValue,
Supplier> supplier
) {
return new ExcelFieldSelector()
.name(name)
.defaultValue(defaultValue)
.supplier(supplier);
}
public String name() {
return name;
}
public ExcelFieldSelector name(String name) {
this.name = name;
return this;
}
public ExcelFieldSelector name(SFunction name) {
return name(LambdaUtil.getFieldName(name));
}
public String defaultValue() {
return defaultValue;
}
public ExcelFieldSelector defaultValue(String defaultValue) {
this.defaultValue = defaultValue;
return this;
}
public Supplier> supplier() {
return supplier;
}
public ExcelFieldSelector supplier(Supplier> values) {
this.supplier = values;
return this;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy