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

io.split.client.dtos.RuleBasedSegment Maven / Gradle / Ivy

The newest version!
package io.split.client.dtos;

import java.util.ArrayList;
import java.util.List;

public class RuleBasedSegment {
    public String name;
    public Status status;
    public String trafficTypeName;
    public long changeNumber;
    public List conditions;
    public Excluded excluded;

    @Override
    public String toString() {
        return "RuleBasedSegment{" +
                "name='" + name + '\'' +
                ", status=" + status +
                ", trafficTypeName='" + trafficTypeName + '\'' +
                ", changeNumber=" + changeNumber + '\'' +
                excludedToString() + '\'' +
                '}';
    }

    public String excludedToString() {
        Excluded ts = excluded != null ? excluded : new Excluded();
        if (ts.keys == null) {
            ts.keys = new ArrayList<>();
        }

        if (ts.segments == null) {
            ts.segments = new ArrayList<>();
        }

        return ", excludedKeys=" + ts.keys + '\'' + ", excludedSegments=" + ts.segments;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy