io.vertx.tp.plugin.excel.cell.ZERO Maven / Gradle / Ivy
package io.vertx.tp.plugin.excel.cell;
import io.vertx.up.util.Ut;
import org.apache.poi.ss.usermodel.Cell;
import org.apache.poi.ss.usermodel.CellType;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.ConcurrentMap;
import java.util.function.Function;
interface Pool {
ConcurrentMap VALUE_MAP = new ConcurrentHashMap() {
{
this.put(Literal.UUID, Ut.singleton(UuidValue.class));
}
};
ConcurrentMap PREFIX_MAP = new ConcurrentHashMap() {
{
this.put(Literal.Prefix.JSON, Ut.singleton(JsonValue.class));
}
};
ConcurrentMap> FUNS
= new ConcurrentHashMap>() {
{
this.put(CellType.STRING, Cell::getStringCellValue);
this.put(CellType.BOOLEAN, Cell::getBooleanCellValue);
this.put(CellType.NUMERIC, DateValue::toNumeric);
}
};
}
interface Literal {
String UUID = "{UUID}";
interface Prefix {
String JSON = "JSON";
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy