/** * This file is auto generated from JavaDoc. Do not modify it manually. */ import type { Object } from "../../types/java/lang/Object"; /** * Instance type utility interface. * *

* An instance of the Sitevision class implementing this interface can be obtained via * {@link senselogic.sitevision.api.Utils#getInstanceTypeUtil()}. * See {@link senselogic.sitevision.api.Utils} for how to obtain an instance of the Utils interface. *

* @author Magnus Lövgren * @since Sitevision 2.6.2 */ export interface InstanceTypeUtil { /** * Checks if an object is a String. * @param aObject the object to be checked * @return whether aObject is a java.lang.String or not. */ isString(aObject: unknown): boolean; /** * Checks if an object is a Boolean. * @param aObject the object to be checked * @return whether aObject is a java.lang.Boolean or not. */ isBoolean(aObject: unknown): boolean; /** * Checks if an object is an Integer. * @param aObject the object to be checked * @return whether aObject is a java.lang.Integer or not. */ isInteger(aObject: unknown): boolean; /** * Checks if an object is a Long. * @param aObject the object to be checked * @return whether aObject is a java.lang.Long or not. */ isLong(aObject: unknown): boolean; /** * Checks if an object is a Double. * @param aObject the object to be checked * @return whether aObject is a java.lang.Double or not. */ isDouble(aObject: unknown): boolean; /** * Checks if an object is a Float. * @param aObject the object to be checked * @return whether aObject is a java.lang.Float or not. */ isFloat(aObject: unknown): boolean; /** * Checks if an object is a Number. * @param aObject the object to be checked * @return whether aObject is a java.lang.Number or not. * @since Sitevision 4.2.3 */ isNumber(aObject: unknown): boolean; /** * Checks if an object is a Node. * @param aObject the object to be checked * @return whether aObject is a {@link javax.jcr.Node} or not. * @see senselogic.sitevision.api.node.NodeTypeUtil */ isNode(aObject: unknown): boolean; /** * Checks if an object is a Property. * @param aObject the object to be checked * @return whether aObject is a {@link javax.jcr.Property} or not. */ isProperty(aObject: unknown): boolean; /** * Checks if an object is a Date. * @param aObject the object to be checked * @return whether aObject is a java.util.Date or not. */ isDate(aObject: unknown): boolean; /** * Checks if an object is a Calendar. * @param aObject the object to be checked * @return whether aObject is a java.lang.Calendar or not. * @since Sitevision 4.2.3 */ isCalendar(aObject: unknown): boolean; /** * Checks if an object is a List. * @param aObject the object to be checked * @return whether aObject is a java.util.List or not. */ isList(aObject: unknown): boolean; /** * Checks if an object is a Map. * @param aObject the object to be checked * @return whether aObject is a java.util.Map or not. */ isMap(aObject: unknown): boolean; /** * Checks if an object is a Set. * @param aObject the object to be checked * @return whether aObject is a java.util.Set or not. */ isSet(aObject: unknown): boolean; /** * Checks if an object is a Collection. * @param aObject the object to be checked * @return whether aObject is a java.util.Collection or not. */ isCollection(aObject: unknown): boolean; /** * Checks if an object is an Iterator. * @param aObject the object to be checked * @return whether aObject is a java.util.Iterator or not. */ isIterator(aObject: unknown): boolean; /** * Checks if an object is an Iterable. * @param aObject the object to be checked * @return whether aObject is a java.lang.Iterable or not. * @since Sitevision 4.2.3 */ isIterable(aObject: unknown): boolean; /** * Checks if an object is a Serializable. * @param aObject the object to be checked * @return whether aObject is a java.io.Serializable or not. * @since Sitevision 4.2.3 */ isSerializable(aObject: unknown): boolean; /** * Checks if an object is a Comparator. * @param aObject the object to be checked * @return whether aObject is a java.lang.Comparator or not. * @since Sitevision 4.2.3 */ isComparator(aObject: unknown): boolean; /** * Checks if an object is a Comparable. * @param aObject the object to be checked * @return whether aObject is a java.lang.Comparable or not. * @since Sitevision 4.2.3 */ isComparable(aObject: unknown): boolean; /** * Checks if an object is an Exception. * @param aObject the object to be checked * @return whether aObject is a java.lang.Exception or not. * @since Sitevision 4.2.3 */ isException(aObject: unknown): boolean; /** * Checks if an object is a Throwable. * @param aObject the object to be checked * @return whether aObject is a java.lang.Throwable or not. * @since Sitevision 4.2.3 */ isThrowable(aObject: unknown): boolean; } declare namespace InstanceTypeUtil {} declare var instanceTypeUtil: InstanceTypeUtil; export default instanceTypeUtil;