本文整理了Java中org.opendaylight.yang.gen.v1.urn.opendaylight.group.types.rev131018.groups.Group.getContainerName()
方法的一些代码示例,展示了Group.getContainerName()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Group.getContainerName()
方法的具体详情如下:
包路径:org.opendaylight.yang.gen.v1.urn.opendaylight.group.types.rev131018.groups.Group
类名称:Group
方法名:getContainerName
暂无
代码示例来源:origin: org.opendaylight.groupbasedpolicy/ofoverlay-renderer
@Override
protected boolean doEquivalent(Group a, Group b) {
if (!EquivalenceFabric.BUCKETS_EQUIVALENCE.equivalent(a.getBuckets(), b.getBuckets())) {
return false;
}
if (!Objects.equals(a.getContainerName(), b.getContainerName())) {
return false;
}
if (!Objects.equals(a.getGroupName(), b.getGroupName())) {
return false;
}
if (!Objects.equals(a.getGroupType(), b.getGroupType())) {
return false;
}
if (!Objects.equals(a.isBarrier(), b.isBarrier())) {
return false;
}
return true;
}
代码示例来源:origin: org.opendaylight.groupbasedpolicy/ofoverlay-renderer
@Override
protected int doHash(Group group) {
final int prime = 31;
int result = 1;
result = prime * result + ((group.getBuckets() == null) ? 0
: EquivalenceFabric.BUCKETS_EQUIVALENCE.wrap(group.getBuckets()).hashCode());
result = prime * result + ((group.getContainerName() == null) ? 0
: group.getContainerName().hashCode());
result = prime * result + ((group.getGroupName() == null) ? 0
: group.getGroupName().hashCode());
result = prime * result + ((group.getGroupType() == null) ? 0
: group.getGroupType().hashCode());
result = prime * result + ((group.isBarrier() == null) ? 0 : group.isBarrier().hashCode());
return result;
}
}
代码示例来源:origin: org.opendaylight.controller.model/model-flow-base
if (other.getContainerName() != null) {
return false;
} else if(!_containerName.equals(other.getContainerName())) {
return false;
代码示例来源:origin: org.opendaylight.controller.model/model-flow-base
public GroupBuilder(Group base) {
if (base.getKey() == null) {
this._key = new GroupKey(
base.getGroupId()
);
this._groupId = base.getGroupId();
} else {
this._key = base.getKey();
this._groupId = _key.getGroupId();
}
this._buckets = base.getBuckets();
this._containerName = base.getContainerName();
this._groupName = base.getGroupName();
this._groupType = base.getGroupType();
this._barrier = base.isBarrier();
if (base instanceof GroupImpl) {
GroupImpl _impl = (GroupImpl) base;
this.augmentation = new HashMap<>(_impl.augmentation);
}
}
内容来源于网络,如有侵权,请联系作者删除!