public static <TItem> Bson max(final String fieldName, final TItem value) {
    """
	Creates an update that sets the value of the field to the given value if the given value is greater than the current value of the
	field.
	
	@param fieldName the non-null field name
	@param value     the value
	@param <TItem>   the value type
	@return the update
	@mongodb.driver.manual reference/operator/update/min/ $min
    """
        return new SimpleUpdate<TItem>(fieldName, value, "$max");
    }
public static <TItem> Bson max(final String fieldName, final TItem value) {
        return new SimpleUpdate<TItem>(fieldName, value, "$max");
    }
public static < TItem > Bson max ( final String fieldName , final TItem value ) { return new SimpleUpdate < TItem > ( fieldName , value , "$max" ) ; }
Creates an update that sets the value of the field to the given value if the given value is greater than the current value of the
field.

@param fieldName the non-null field name
@param value     the value
@param <TItem>   the value type
@return the update
@mongodb.driver.manual reference/operator/update/min/ $min
Creates an update that sets the value of the field to the given value if the given value is greater than the current value of the field .