io.getunleash.Segment 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
The newest version!
package io.getunleash;
import static java.util.Arrays.asList;
import java.util.Collections;
import java.util.List;
public class Segment {
private int id;
private String name;
private List constraints;
public Segment(int id, String name, List constraints) {
this.id = id;
this.name = name;
this.constraints = constraints;
}
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public List getConstraints() {
return constraints;
}
public void setConstraints(List constraints) {
this.constraints = constraints;
}
public static Segment DENY_SEGMENT =
new Segment(
-9999,
"NON_EXISTING_SEGMENT_ID",
asList(
new Constraint(
"non-existing-segment-id",
Operator.IN,
Collections.emptyList())));
}