List of usage examples for com.fasterxml.jackson.databind.node LongNode valueOf
public static LongNode valueOf(long paramLong)
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:// w w w . j a v a 2 s. c o 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 Long value) throws ScimException { return replace(path, LongNode.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. *///ww w . j ava 2 s .c o m public static PatchOperation replace(final Path path, final Long value) { return replace(path, LongNode.valueOf(value)); }
From source file:com.unboundid.scim2.common.GenericScimResource.java
/** * Adds or replaces a Long value in a generic SCIM resource. * <p>/*from w w w .j a va 2 s . c o m*/ * For example: * In a GenericScimResource (gsr) representing the following resource: * <pre><code> * { * "path1":7 * } * </code></pre> * <p> * gsr.replaceValue(Path.fromString("path1"), path1value) * where path1value is a Long * would change the "path1" field to the value of the path1value * variable * <p> * * gsr.replaceValue(Path.fromString("path2"), path2value) * where path2value is a Long * 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 Long value) throws ScimException { return replaceValue(path, LongNode.valueOf(value)); }