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

io.sphere.sdk.products.attributes.RichReferenceType Maven / Gradle / Ivy

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

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.core.type.TypeReference;
import io.sphere.sdk.models.Reference;

public class RichReferenceType extends ReferenceType {
    private final TypeReference> typeReference;

    @JsonCreator
    private RichReferenceType(final String referenceTypeId, final TypeReference> typeReference) {
        super(referenceTypeId);
        this.typeReference = typeReference;
    }

    public TypeReference> typeReference() {
        return typeReference;
    }

    static  RichReferenceType of(final String referenceTypeId, final TypeReference> typeReference) {
        return new RichReferenceType<>(referenceTypeId, typeReference);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy