本文整理了Java中org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.Interface.getKey()
方法的一些代码示例,展示了Interface.getKey()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Interface.getKey()
方法的具体详情如下:
包路径:org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.Interface
类名称:Interface
方法名:getKey
[英]Returns Primary Key of Yang List Type
[中]返回列表类型的主键
代码示例来源:origin: org.opendaylight.mdsal.model/ietf-interfaces
return false;
if (!Objects.equals(_key, other.getKey())) {
return false;
代码示例来源:origin: org.opendaylight.yangtools.model/ietf-interfaces
public InterfaceBuilder(Interface base) {
if (base.getKey() == null) {
this._key = new InterfaceKey(
base.getName()
);
this._name = base.getName();
} else {
this._key = base.getKey();
this._name = _key.getName();
}
this._description = base.getDescription();
this._linkUpDownTrapEnable = base.getLinkUpDownTrapEnable();
this._type = base.getType();
this._enabled = base.isEnabled();
if (base instanceof InterfaceImpl) {
InterfaceImpl impl = (InterfaceImpl) base;
if (!impl.augmentation.isEmpty()) {
this.augmentation = new HashMap<>(impl.augmentation);
}
} else if (base instanceof AugmentationHolder) {
@SuppressWarnings("unchecked")
AugmentationHolder<org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.Interface> casted =(AugmentationHolder<org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.Interface>) base;
if (!casted.augmentations().isEmpty()) {
this.augmentation = new HashMap<>(casted.augmentations());
}
}
}
代码示例来源:origin: org.opendaylight.mdsal.model/ietf-interfaces
public InterfaceBuilder(Interface base) {
if (base.getKey() == null) {
this._key = new InterfaceKey(
base.getName()
);
this._name = base.getName();
} else {
this._key = base.getKey();
this._name = _key.getName();
}
this._description = base.getDescription();
this._linkUpDownTrapEnable = base.getLinkUpDownTrapEnable();
this._type = base.getType();
this._enabled = base.isEnabled();
if (base instanceof InterfaceImpl) {
InterfaceImpl impl = (InterfaceImpl) base;
if (!impl.augmentation.isEmpty()) {
this.augmentation = new HashMap<>(impl.augmentation);
}
} else if (base instanceof AugmentationHolder) {
@SuppressWarnings("unchecked")
AugmentationHolder<org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.Interface> casted =(AugmentationHolder<org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.Interface>) base;
if (!casted.augmentations().isEmpty()) {
this.augmentation = new HashMap<>(casted.augmentations());
}
}
}
代码示例来源:origin: org.opendaylight.yangtools.model/ietf-interfaces
if (other.getKey() != null) {
return false;
} else if(!_key.equals(other.getKey())) {
return false;
内容来源于网络,如有侵权,请联系作者删除!