io.sphere.sdk.customobjects.CustomObjectUtils Maven / Gradle / Ivy
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