class AllOrNoneValueSet implements ValueSet {

    @Override
    public ValueSet intersect(ValueSet other)
    {
        AllOrNoneValueSet otherValueSet = checkCompatibility(other);
        return new AllOrNoneValueSet(type, all && otherValueSet.all);
    }

    @JsonCreator public  AllOrNoneValueSet(@JsonProperty("type") Type type, @JsonProperty("all") boolean all);

}