class AllOrNoneValueSet implements ValueSet {

    @Override
    public boolean containsValue(Object value)
    {
        requireNonNull(value, "value is null");
        Class<?> expectedClass = Primitives.wrap(type.getJavaType());
        if (!expectedClass.isInstance(value)) {
            throw new IllegalArgumentException(format("Value class %s does not match required class %s", value.getClass().getName(), expectedClass.getName()));
        }
        return all;
    }

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

}