io.sphere.sdk.models.Reference.<init>()方法的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(2.4k)|赞(0)|评价(0)|浏览(107)

本文整理了Java中io.sphere.sdk.models.Reference.<init>方法的一些代码示例,展示了Reference.<init>的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Reference.<init>方法的具体详情如下:
包路径:io.sphere.sdk.models.Reference
类名称:Reference
方法名:<init>

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);
}

相关文章