- Common ways to obtain ObjectNode
private void myMethod () {ObjectNode o =
JsonNodeFactory instance;instance.objectNode()
ObjectMapper mapper;mapper.createObjectNode()
ArrayNode arrayNode;arrayNode.addObject()
- Smart code suggestions by Codota
}
/** * Method for removing all field properties out of this ObjectNode * <b>except</b> for ones specified in argument. * * @param fieldNames Fields to <b>retain</b> in this ObjectNode * * @return This ObjectNode (to allow call chaining) * * @since 1.6 */ public ObjectNode retain(String... fieldNames) { return retain(Arrays.asList(fieldNames)); }
/** * Method for removing all field properties out of this ObjectNode * <b>except</b> for ones specified in argument. * * @param fieldNames Fields to <b>retain</b> in this ObjectNode * * @return This ObjectNode (to allow call chaining) * * @since 1.6 */ public ObjectNode retain(String... fieldNames) { return retain(Arrays.asList(fieldNames)); }
/** * Method for removing all field properties out of this ObjectNode * <b>except</b> for ones specified in argument. * * @param fieldNames Fields to <b>retain</b> in this ObjectNode * * @return This ObjectNode (to allow call chaining) * * @since 1.6 */ public ObjectNode retain(String... fieldNames) { return retain(Arrays.asList(fieldNames)); }
/** * Method for removing all field properties out of this ObjectNode * <b>except</b> for ones specified in argument. * * @param fieldNames Fields to <b>retain</b> in this ObjectNode * * @return This ObjectNode (to allow call chaining) * * @since 1.6 */ public ObjectNode retain(String... fieldNames) { return retain(Arrays.asList(fieldNames)); }
/** * Method for removing all field properties out of this ObjectNode * <b>except</b> for ones specified in argument. * * @param fieldNames Fields to <b>retain</b> in this ObjectNode * * @return This ObjectNode (to allow call chaining) * * @since 1.6 */ public ObjectNode retain(String... fieldNames) { return retain(Arrays.asList(fieldNames)); }