Modifier and Type | Method and Description |
---|---|
static com.fasterxml.jackson.databind.node.ObjectNode |
limitToNode(Limit limits)
Converts the given
Limit object into an ObjectNode . |
static Limit |
nodeToNewLimit(com.fasterxml.jackson.databind.node.ObjectNode object)
Converts the given
ObjectNode into a Limit object. |
static Limit |
nodeToUpdatedLimit(com.fasterxml.jackson.databind.node.ObjectNode object,
Limit oldLimits)
Returns the given
Limit object updated with the values defined in
the ObjectNode parameter. |
public static com.fasterxml.jackson.databind.node.ObjectNode limitToNode(Limit limits)
Limit
object into an ObjectNode
.limits
- the limits object to convertpublic static Limit nodeToNewLimit(com.fasterxml.jackson.databind.node.ObjectNode object)
ObjectNode
into a Limit
object.object
- the ObjectNode to convertRestErrorException
- if the given ObjectNode does not
represent a Limit objectpublic static Limit nodeToUpdatedLimit(com.fasterxml.jackson.databind.node.ObjectNode object, Limit oldLimits)
Limit
object updated with the values defined in
the ObjectNode
parameter.
All fields missing in the JSON object will stay unchanged in the updated
limit object.object
- the ObjectNode to convertoldLimits
- the Limit object to updateRestErrorException
- if the given ObjectNode does not
represent a Limit objectCopyright © 2009–2020 Waarp. All rights reserved.