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

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

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

Reference.of介绍

暂无

代码示例

代码示例来源:origin: io.sphere.sdk.jvm/sphere-models

@Override
  public Reference<ProductDiscount> toReference() {
    return Reference.of(ProductDiscount.referenceTypeId(), this);
  }
}

代码示例来源:origin: io.sphere.sdk.jvm/products

@Override
  public Reference<ProductDiscount> toReference() {
    return Reference.of(ProductDiscount.typeId(), this);
  }
}

代码示例来源:origin: io.sphere.sdk.jvm/sphere-models

static Reference<Category> referenceOfId(final String id) {
    return Reference.of(referenceTypeId(), id);
  }
}

代码示例来源:origin: io.sphere.sdk.jvm/sphere-models

static Reference<TaxCategory> referenceOfId(final String id) {
    return Reference.of(referenceTypeId(), id);
  }
}

代码示例来源:origin: com.commercetools.sdk.jvm.core/commercetools-models

@Override
  default Reference<ProductDiscount> toReference() {
    return Reference.of(ProductDiscount.referenceTypeId(), this);
  }
}

代码示例来源:origin: io.sphere.sdk.jvm/models

@SuppressWarnings("unchecked")
@Override
default Reference<CustomObject<JsonNode>> toReference() {
  return Reference.of(typeId(), getId(), (CustomObject<JsonNode>)this);
}

代码示例来源:origin: commercetools/commercetools-jvm-sdk

@Override
  default Reference<ShoppingList> toReference() {
    return Reference.of(referenceTypeId(), getId(), this);
  }
}

代码示例来源:origin: com.commercetools.sdk.jvm.core/commercetools-models

@Override
default Reference<Extension> toReference() {
  return Reference.of(referenceTypeId(), getId(), this);
}

代码示例来源:origin: io.sphere.sdk.jvm/sphere-models

@Override
default Reference<Customer> toReference() {
  return Reference.of(referenceTypeId(), getId(), this);
}

代码示例来源:origin: io.sphere.sdk.jvm/sphere-models

default Reference<Review> toReference() {
    return Reference.of(referenceTypeId(), getId(), this);
  }
}

代码示例来源:origin: io.sphere.sdk.jvm/sphere-models

@Override
default Reference<ShippingMethod> toReference() {
  return Reference.of(referenceTypeId(), getId(), this);
}

代码示例来源:origin: io.sphere.sdk.jvm/sphere-models

@Override
default Reference<Cart> toReference() {
  return Reference.of(referenceTypeId(), getId(), this);
}

代码示例来源:origin: io.sphere.sdk.jvm/models

@Override
default Reference<CustomerGroup> toReference() {
  return Reference.of(typeId(), getId(), this);
}

代码示例来源:origin: com.commercetools.sdk.jvm.core/commercetools-models

@Override
  default Reference<ShoppingList> toReference() {
    return Reference.of(referenceTypeId(), getId(), this);
  }
}

代码示例来源:origin: com.commercetools.sdk.jvm.core/commercetools-models

@Override
default Reference<CartDiscount> toReference() {
  return Reference.of(referenceTypeId(), getId(), this);
}

代码示例来源:origin: com.commercetools.sdk.jvm.core/commercetools-models

@Override
default Reference<Payment> toReference() {
  return Reference.of(referenceTypeId(), getId(), this);
}

代码示例来源:origin: com.commercetools.sdk.jvm.core/commercetools-models

@Override
default Reference<Category> toReference() {
  return Reference.of(referenceTypeId(), getId(), this);
}

代码示例来源:origin: io.sphere.sdk.jvm/sphere-models

@Override
default Reference<Category> toReference() {
  return Reference.of(referenceTypeId(), getId(), this);
}

代码示例来源:origin: io.sphere.sdk.jvm/sphere-models

@Override
default Reference<CustomerGroup> toReference() {
  return Reference.of(referenceTypeId(), getId(), this);
}

代码示例来源:origin: commercetools/commercetools-jvm-sdk

@Test
public void doesNotTouchOtherValueLikeEnumsForReferenceSet() throws Exception {
  final AttributeDraft draft = AttributeDraft.of("foo", asSet(Reference.of("type-id", "id")));
  assertThat(draft.getValue().toString()).isEqualTo("[{\"typeId\":\"type-id\",\"id\":\"id\"}]");
}

相关文章