cn.k7g.alloy.core.objectmapper.ExpandFlagEnumSerializer Maven / Gradle / Ivy
package cn.k7g.alloy.core.objectmapper;
import cn.k7g.alloy.annotation.ExpandFlag;
import cn.k7g.alloy.core.ext.FlagCode;
import com.fasterxml.jackson.core.JsonGenerator;
import com.fasterxml.jackson.databind.JsonSerializer;
import com.fasterxml.jackson.databind.SerializerProvider;
import lombok.extern.slf4j.Slf4j;
import java.io.IOException;
import java.lang.reflect.Method;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
import java.util.Optional;
import java.util.Set;
@Slf4j
public class ExpandFlagEnumSerializer extends JsonSerializer