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

io.sphere.sdk.customobjects.CustomObjectUtils Maven / Gradle / Ivy

There is a newer version: 1.0.0-M26
Show newest version
package io.sphere.sdk.customobjects;

import com.fasterxml.jackson.databind.JavaType;
import com.fasterxml.jackson.databind.type.TypeFactory;

/**
 * Internal utility class.
 */
public final class CustomObjectUtils {
    private CustomObjectUtils() {
    }

    public static JavaType getCustomObjectJavaTypeForValue(final JavaType javaType) {
        final TypeFactory typeFactory = TypeFactory.defaultInstance();
        return typeFactory.constructParametrizedType(CustomObject.class, CustomObject.class, javaType);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy