本文整理了Java中io.sphere.sdk.models.Reference.<init>
方法的一些代码示例,展示了Reference.<init>
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Reference.<init>
方法的具体详情如下:
包路径:io.sphere.sdk.models.Reference
类名称:Reference
方法名:<init>
暂无
代码示例来源:origin: io.sphere.sdk.jvm/common
public static <T> Reference<T> of(final String typeId, final String id) {
return new Reference<>(typeId, id, Optional.empty());
}
代码示例来源:origin: io.sphere.jvmsdk/common
public static <T> Reference<T> of(final String typeId, final String id) {
return new Reference<>(typeId, id, Optional.empty());
}
代码示例来源:origin: io.sphere.sdk.jvm/products
public static Reference<Product> reference(final Product product) {
return new Reference<>(typeId(), product.getId(), Optional.ofNullable(product));
}
代码示例来源:origin: io.sphere.sdk.jvm/products
public static Reference<TaxCategory> reference(final TaxCategory taxCategory) {
return new Reference<>(typeId(), taxCategory.getId(), Optional.ofNullable(taxCategory));
}
代码示例来源:origin: io.sphere.jvmsdk/product-types
public static Reference<ProductType> reference(final ProductType productType) {
return new Reference<>(typeId(), productType.getId(), Optional.ofNullable(productType));
}
代码示例来源:origin: io.sphere.sdk.jvm/categories
@Override
default Reference<Category> toReference() {
return new Reference<>(typeId(), getId(), Optional.of(this));
}
代码示例来源:origin: io.sphere.sdk.jvm/products
@Override
default Reference<Category> toReference() {
return new Reference<>(typeId(), getId(), Optional.of(this));
}
代码示例来源:origin: io.sphere.sdk.jvm/products
@Override
default Reference<Cart> toReference() {
return new Reference<>(typeId(), getId(), Optional.of(this));
}
代码示例来源:origin: io.sphere.sdk.jvm/products
public static Reference<ProductType> reference(final ProductType productType) {
return new Reference<>(typeId(), productType.getId(), Optional.ofNullable(productType));
}
代码示例来源:origin: io.sphere.sdk.jvm/taxes
public static Reference<TaxCategory> reference(final TaxCategory taxCategory) {
return new Reference<>(typeId(), taxCategory.getId(), Optional.ofNullable(taxCategory));
}
代码示例来源:origin: io.sphere.sdk.jvm/common
public Reference<T> filled(final Optional<T> obj) {
return new Reference<>(getTypeId(), getId(), obj);
}
代码示例来源:origin: io.sphere.jvmsdk/common
public Reference<T> filled(final Optional<T> obj) {
return new Reference<>(getTypeId(), getId(), obj);
}
内容来源于网络,如有侵权,请联系作者删除!