no.finn.unleash.repository.JsonToggleCollectionDeserializer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of unleash-client-java Show documentation
Show all versions of unleash-client-java Show documentation
A client library for Unleash
package no.finn.unleash.repository;
import com.google.gson.*;
import com.google.gson.reflect.TypeToken;
import no.finn.unleash.ActivationStrategy;
import no.finn.unleash.FeatureToggle;
import java.lang.reflect.Type;
import java.util.*;
import static java.util.Collections.emptyList;
import static java.util.Collections.singletonList;
public class JsonToggleCollectionDeserializer implements JsonDeserializer {
private static final Type PARAMS_TYPE = new TypeToken