com.googlecode.jsonrpc4j.Util Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jsonrpc4j Show documentation
Show all versions of jsonrpc4j Show documentation
This project aims to provide the facility to easily implement JSON-RPC for the java programming language.
package com.googlecode.jsonrpc4j;
import com.fasterxml.jackson.databind.node.ObjectNode;
public class Util {
@SuppressWarnings("PMD.AvoidUsingHardCodedIP")
public static final String DEFAULT_HOSTNAME = "0.0.0.0";
static boolean hasNonNullObjectData(final ObjectNode node, final String key) {
return hasNonNullData(node, key) && node.get(key).isObject();
}
static boolean hasNonNullData(final ObjectNode node, final String key) {
return node.has(key) && !node.get(key).isNull();
}
static boolean hasNonNullTextualData(final ObjectNode node, final String key) {
return hasNonNullData(node, key) && node.get(key).isTextual();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy