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

com.statsig.EvaluationDetails Maven / Gradle / Ivy

The newest version!
package com.statsig;

import java.util.HashMap;
import java.util.Map;

public class EvaluationDetails {
    /**
     * last config updated time
     */
    public long lcut;

    /**
     * The time when we received this config
     */
    public long receivedAt;

    /**
     * Evaluation reason
     */
    public String reason;

    EvaluationDetails(long lcut, long receivedAt, String reason) {
        this.lcut = lcut;
        this.receivedAt = receivedAt;
        this.reason = reason;
    }

    @Override
    public String toString() {
        return String.format(
                "EvaluationDetails { lcut=%s, receivedAt=%s, reason='%s' }",
                lcut, receivedAt, reason
        );
    }

    public Map toMap() {
        Map map = new HashMap<>();
        map.put("lcut", lcut);
        map.put("receivedAt", receivedAt);
        map.put("reason", reason);
        return map;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy