com.alibaba.fastjson.serializer.Labels Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of fastjson Show documentation
Show all versions of fastjson Show documentation
Fastjson is a JSON processor (JSON parser + JSON generator) written in Java
package com.alibaba.fastjson.serializer;
public class Labels {
private static class DefaultLabelFilter
extends com.alibaba.fastjson2.filter.Labels.DefaultLabelFilter
implements LabelFilter {
public DefaultLabelFilter(String[] includes, String[] excludes) {
super(includes, excludes);
}
}
public static LabelFilter includes(String... views) {
return new DefaultLabelFilter(views, null);
}
public static LabelFilter excludes(String... views) {
return new DefaultLabelFilter(null, views);
}
}