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

com.networknt.jsonoverlay.Primitive Maven / Gradle / Ivy

Go to download

A fork of RepreZen JsonOverlay with all dependencies and code generation removed

There is a newer version: 2.1.36
Show newest version
/*********************************************************************
 *  Copyright (c) 2017 ModelSolv, Inc. and others.
 *
 * This program and the accompanying materials are made
 * available under the terms of the Eclipse Public License 2.0
 * which is available at https://www.eclipse.org/legal/epl-2.0/
 *
 * SPDX-License-Identifier: EPL-2.0
 *
 *  Contributors:
 *     ModelSolv, Inc.
 *     - initial API and implementation and/or initial documentation
 **********************************************************************/
package com.networknt.jsonoverlay;

public class Primitive {
	// This is a placeholder because we have values defined as type "Primitive"
	// in
	// the type descriptors, but the values are really represented by Objects
	// (since
	// there's no way to splice Primitive into the Java type hierarchy). This is
	// listed as an "auto" import type in the type generator, which prevents an
	// import from being attempted for it.
	public static boolean _isPrimitive(Object o) {
		return o == null || o instanceof Number || o instanceof String;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy