/** * Sets a given option and a value for that option. * * @param name The name of the option * @param value The value of the option. Must be one of the types that we can serialize. See * {@link ObjectSerializerFactory} for a list of supported types. * @return A this reference to allow chaining */ public OperationOptionsBuilder setOption(final String name, final Object value) { Assertions.blankCheck(name, "name"); // don't validate value here - we do that in // the constructor of OperationOptions - that's // really the only place we can truly enforce this options.put(name, value); return this; }
/** * Sets a given option and a value for that option. * * @param name The name of the option * @param value The value of the option. Must be one of the types that we can serialize. See * {@link ObjectSerializerFactory} for a list of supported types. * @return A this reference to allow chaining */ public OperationOptionsBuilder setOption(final String name, final Object value) { Assertions.blankCheck(name, "name"); // don't validate value here - we do that in // the constructor of OperationOptions - that's // really the only place we can truly enforce this options.put(name, value); return this; }
/** * Sets a given option and a value for that option. * * @param name * The name of the option * @param value * The value of the option. Must be one of the types that we can * serialize. See {@link ObjectSerializerFactory} for a list of * supported types. */ public OperationOptionsBuilder setOption(String name, Object value) { Assertions.blankCheck(name, "name"); // don't validate value here - we do that in // the constructor of OperationOptions - that's // really the only place we can truly enforce this _options.put(name, value); return this; }
Script(String scriptLanguage, String scriptText) { Assertions.blankCheck(scriptLanguage, "scriptLanguage"); Assertions.nullCheck(scriptText, "scriptText"); // Allow empty text. this.scriptLanguage = scriptLanguage; this.scriptText = scriptText; }
Script(String scriptLanguage, String scriptText) { Assertions.blankCheck(scriptLanguage, "scriptLanguage"); Assertions.nullCheck(scriptText, "scriptText"); // Allow empty text. this.scriptLanguage = scriptLanguage; this.scriptText = scriptText; }
Script(String scriptLanguage, String scriptText) { Assertions.blankCheck(scriptLanguage, "scriptLanguage"); Assertions.nullCheck(scriptText, "scriptText"); // Allow empty text. this.scriptLanguage = scriptLanguage; this.scriptText = scriptText; }
Assertions.blankCheck(range, "range"); int idx = range.indexOf(ENDPOINT_DELIMITER);
Assertions.blankCheck(range, "range"); int idx = range.indexOf(ENDPOINT_DELIMITER);