All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.googlecode.jsonrpc4j.Util Maven / Gradle / Ivy

Go to download

This project aims to provide the facility to easily implement JSON-RPC for the java programming language.

There is a newer version: 1.6
Show newest version
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