Example usage for org.springframework.core ResolvableType getClass

List of usage examples for org.springframework.core ResolvableType getClass

Introduction

In this page you can find the example usage for org.springframework.core ResolvableType getClass.

Prototype

@HotSpotIntrinsicCandidate
public final native Class<?> getClass();

Source Link

Document

Returns the runtime class of this Object .

Usage

From source file:com.nestedbird.modules.formparser.FormParse.java

/**
 * Parses an Object//from   w  w  w .  j a  v a  2  s  . c  o m
 *
 * @param value the value
 * @param type  the type of the value
 * @return new Object
 * @throws JSONException the exception
 */
private Object parseObject(final JSONObject value, final ResolvableType type) throws JSONException {
    Object returnVar = value;
    if (isValueDatabaseEntity(type.getClass())) {
        returnVar = parseBaseEntity(value, type.getClass());
    }
    return returnVar;
}