/** * Sets the value of this model to a new {@link BooleanValue} holding the * specified {@code Boolean}. * * @param val the new value * @return a reference to this */ default T set(final Boolean val) { return set(ofBoolean(val)); }
/** * Creates a public final static {@link Field} with the specified value and * adds it to this model. * * @param name the name of the field * @param type the type of the field * @param value the value of the field * @return a reference to this * * @since 2.5 */ default T constant(final String name, Type type, Boolean value) { return constant(name, type, ofBoolean(value)); }
fieldParams.add(Value.ofBoolean(DocumentDbUtil.isUnique(col)));
/** * Sets the value of this model to a new {@link BooleanValue} holding the * specified {@code Boolean}. * * @param val the new value * @return a reference to this */ default T set(final Boolean val) { return set(ofBoolean(val)); }
/** * Creates a public final static {@link Field} with the specified value and * adds it to this model. * * @param name the name of the field * @param type the type of the field * @param value the value of the field * @return a reference to this * * @since 2.5 */ default T constant(final String name, Type type, Boolean value) { return constant(name, type, ofBoolean(value)); }
fieldParams.add(Value.ofBoolean(DocumentDbUtil.isUnique(col)));