public UnderlayTopologyBuilder(UnderlayTopology base) { this.key = base.key(); this._topologyRef = base.getTopologyRef(); if (base instanceof UnderlayTopologyImpl) { UnderlayTopologyImpl impl = (UnderlayTopologyImpl) base; if (!impl.augmentation.isEmpty()) { this.augmentation = new HashMap<>(impl.augmentation); } } else if (base instanceof AugmentationHolder) { @SuppressWarnings("unchecked") Map<Class<? extends Augmentation<UnderlayTopology>>, Augmentation<UnderlayTopology>> aug =((AugmentationHolder<UnderlayTopology>) base).augmentations(); if (!aug.isEmpty()) { this.augmentation = new HashMap<>(aug); } } }
public UnderlayTopologyBuilder(UnderlayTopology base) { if (base.getKey() == null) { this._key = new UnderlayTopologyKey( base.getTopologyRef() ); this._topologyRef = base.getTopologyRef(); } else { this._key = base.getKey(); this._topologyRef = _key.getTopologyRef(); } if (base instanceof UnderlayTopologyImpl) { UnderlayTopologyImpl impl = (UnderlayTopologyImpl) 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.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.UnderlayTopology> casted =(AugmentationHolder<org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.UnderlayTopology>) base; if (!casted.augmentations().isEmpty()) { this.augmentation = new HashMap<>(casted.augmentations()); } } }
if (other.getKey() != null) { return false; } else if(!_key.equals(other.getKey())) { return false; if (other.getTopologyRef() != null) { return false; } else if(!_topologyRef.equals(other.getTopologyRef())) { return false; if (!e.getValue().equals(other.getAugmentation(e.getKey()))) { return false;
if (!Objects.equals(_topologyRef, other.getTopologyRef())) { return false; if (!e.getValue().equals(other.augmentation(e.getKey()))) { return false;