All Downloads are FREE. Search and download functionalities are using the official Maven repository.

no.finn.unleash.repository.FeatureToggleResponse Maven / Gradle / Ivy

There is a newer version: 4.4.1
Show newest version
package no.finn.unleash.repository;

import no.finn.unleash.FeatureToggle;

import java.util.Collections;
import java.util.List;

public final class FeatureToggleResponse {
    public enum Status {NOT_CHANGED, CHANGED, UNAVAILABLE}

    private final Status status;
    private final ToggleCollection toggleCollection;

    public FeatureToggleResponse(Status status, ToggleCollection toggleCollection) {
        this.status = status;
        this.toggleCollection = toggleCollection;
    }

    public FeatureToggleResponse(Status status) {
        this.status = status;
        List emptyList = Collections.emptyList();
        this.toggleCollection = new ToggleCollection(emptyList);
    }

    public Status getStatus() {
        return status;
    }

    public ToggleCollection getToggleCollection() {
        return toggleCollection;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy