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

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

The 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.constructParametricType(CustomObject.class, javaType);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy