/** * Add the given values to the array value if they don't already exist in the specified field atomically * * @param field The field to add the values to * @param values The values to add * @return this object */ public static Builder addToSet(String field, List<?> values) { return new Builder().addToSet(field, values); }
/** * Add the given value to the array value if it doesn't already exist in the specified field atomically * * @param field The field to add the value to * @param value The value to add * @return this object */ public static Builder addToSet(String field, Object value) { return new Builder().addToSet(field, value); }
/** * Add the given values to the array value if they don't already exist in the specified field atomically * * @param field The field to add the values to * @param values The values to add * @return this object */ public static Builder addToSet(String field, Object... values) { return new Builder().addToSet(field, values); }
/** * Add the given values to the array value if they don't already exist in the specified field atomically * * @param field The field to add the values to * @param values The values to add * @return this object */ public static Builder addToSet(String field, Object... values) { return new Builder().addToSet(field, values); }
/** * Add the given value to the array value if it doesn't already exist in the specified field atomically * * @param field The field to add the value to * @param value The value to add * @return this object */ public static Builder addToSet(String field, Object value) { return new Builder().addToSet(field, value); }
/** * Add the given values to the array value if they don't already exist in the specified field atomically * * @param field The field to add the values to * @param values The values to add * @return this object */ public static Builder addToSet(String field, List<?> values) { return new Builder().addToSet(field, values); }