List of usage examples for com.fasterxml.jackson.databind.node DoubleNode valueOf
public static DoubleNode valueOf(double paramDouble)
From source file:com.unboundid.scim2.common.messages.PatchOperation.java
/** * Create a new replace patch operation. * * @param path The path targeted by this patch operation. The path * must not be {@code null}. * Path string examples:// www. ja v a 2 s . co m * "{@code userName eq 'bjensen'}" * "{@code userName}" * @param value The value(s) to replace. The value(s) must not be {@code null}. * * @return The new replace patch operation. * @throws ScimException If the path is invalid. */ public static PatchOperation replace(final String path, final Double value) throws ScimException { return replace(path, DoubleNode.valueOf(value)); }
From source file:com.unboundid.scim2.common.messages.PatchOperation.java
/** * Create a new replace patch operation. * * @param path The path targeted by this patch operation. The path * must not be {@code null}. * @param value The value(s) to replace. The value(s) must not be {@code null}. * * @return The new replace patch operation. */// w ww . j av a2 s.c o m public static PatchOperation replace(final Path path, final Double value) { return replace(path, DoubleNode.valueOf(value)); }
From source file:com.unboundid.scim2.common.GenericScimResource.java
/** * Adds or replaces a Double value in a generic SCIM resource. * <p>/*from w ww . j av a2s. c om*/ * For example: * In a GenericScimResource (gsr) representing the following resource: * <pre><code> * { * "path1":2.0 * } * </code></pre> * <p> * gsr.replaceValue(Path.fromString("path1"), path1value) * where path1value is a Double * would change the "path1" field to the value of the path1value * variable * <p> * * gsr.replaceValue(Path.fromString("path2"), path2value) * where path2value is a Double * would add a field called "path2" with the value of the path2value * variable * <p> * * Note that in a case where multiple paths match (for example * a path with a filter), all paths that match will be affected. * * @param path the path to replace the value for. * @param value the new value. * @return returns the new generic SCIM resource (this). * @throws ScimException thrown if an error occurs (for example * if the path or value is "{@code null}" or invalid). */ public GenericScimResource replaceValue(final Path path, final Double value) throws ScimException { return replaceValue(path, DoubleNode.valueOf(value)); }