gpt4 book ai didi

org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.restconf.rev131019.yang.patch.YangPatchBuilder类的使用及代码示例

转载 作者:知者 更新时间:2024-03-19 07:55:31 26 4
gpt4 key购买 nike

本文整理了Java中org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.restconf.rev131019.yang.patch.YangPatchBuilder类的一些代码示例,展示了YangPatchBuilder类的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。YangPatchBuilder类的具体详情如下:
包路径:org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.restconf.rev131019.yang.patch.YangPatchBuilder
类名称:YangPatchBuilder

YangPatchBuilder介绍

[英]Class that builds org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.restconf.rev131019.yang.patch.YangPatch instances.
[中]类来构建组织。露天采光。杨。第1代。瓮。ietf。帕玛斯。xml。纳什。杨。ietf。restconf。rev131019。杨。色斑YangPatch实例。

代码示例

代码示例来源:origin: org.opendaylight.mdsal.model/ietf-restconf

public YangPatchBuilder setComment(final String value) {
if (value != null) {
  check_commentLength(value);
  
}
  this._comment = value;
  return this;
}
public YangPatchBuilder setEdit(final List<Edit> values) {

代码示例来源:origin: org.opendaylight.mdsal.model/ietf-restconf

YangPatchImpl(YangPatchBuilder base) {
  this._comment = base.getComment();
  this._edit = base.getEdit();
  this._patchId = base.getPatchId();
  this.augmentation = ImmutableMap.copyOf(base.augmentation);
}

代码示例来源:origin: org.opendaylight.mdsal.model/ietf-restconf

public YangPatchBuilder addAugmentation(Class<? extends Augmentation<YangPatch>> augmentationType, Augmentation<YangPatch> augmentationValue) {
  if (augmentationValue == null) {
    return removeAugmentation(augmentationType);
  }

  if (!(this.augmentation instanceof HashMap)) {
    this.augmentation = new HashMap<>();
  }

  this.augmentation.put(augmentationType, augmentationValue);
  return this;
}

代码示例来源:origin: org.opendaylight.yangtools.model/ietf-restconf

public YangPatchBuilder addAugmentation(java.lang.Class<? extends Augmentation<org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.restconf.rev131019.yang.patch.YangPatch>> augmentationType, Augmentation<org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.restconf.rev131019.yang.patch.YangPatch> augmentation) {
  if (augmentation == null) {
    return removeAugmentation(augmentationType);
  }

  if (!(this.augmentation instanceof HashMap)) {
    this.augmentation = new HashMap<>();
  }

  this.augmentation.put(augmentationType, augmentation);
  return this;
}

代码示例来源:origin: org.opendaylight.yangtools.model/ietf-restconf

private YangPatchImpl(YangPatchBuilder base) {
  this._comment = base.getComment();
  this._edit = base.getEdit();
  this._patchId = base.getPatchId();
  switch (base.augmentation.size()) {
  case 0:
    this.augmentation = Collections.emptyMap();
    break;
  case 1:
    final Map.Entry<java.lang.Class<? extends Augmentation<org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.restconf.rev131019.yang.patch.YangPatch>>, Augmentation<org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.restconf.rev131019.yang.patch.YangPatch>> e = base.augmentation.entrySet().iterator().next();
    this.augmentation = Collections.<java.lang.Class<? extends Augmentation<org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.restconf.rev131019.yang.patch.YangPatch>>, Augmentation<org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.restconf.rev131019.yang.patch.YangPatch>>singletonMap(e.getKey(), e.getValue());
    break;
  default :
    this.augmentation = new HashMap<>(base.augmentation);
  }
}

代码示例来源:origin: org.opendaylight.yangtools.model/ietf-restconf

public YangPatchBuilder setComment(java.lang.String value) {
  if (value != null) {
    check_commentLength(value);
  }
  this._comment = value;
  return this;
}
/**

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com