/** * Convenience method that calls {@code with(option, null)}. * * @return this */ public T with(TableOption option) { return with(option.getName(), null, option.escapesValue(), option.quotesValue()); }
/** * Sets the given table option. This is a convenience method that calls * {@link #with(String, Object, boolean, boolean)} appropriately from the given {@link TableOption} and value for that * option. * * @param option The option to set. * @param value The value of the option. Must be type-compatible with the {@link TableOption}. * @return this * @see #with(String, Object, boolean, boolean) */ public T with(TableOption option, Object value) { option.checkValue(value); return with(option.getName(), value, option.escapesValue(), option.quotesValue()); }