if (!Objects.equals(_sourceDestKey, other.getSourceDestKey())) { return false; if (!e.getValue().equals(other.augmentation(e.getKey()))) { return false;
public SourceDestKeyBuilder(SourceDestKey base) { this._sourceDestKey = base.getSourceDestKey(); if (base instanceof SourceDestKeyImpl) { SourceDestKeyImpl impl = (SourceDestKeyImpl) base; if (!impl.augmentation.isEmpty()) { this.augmentation = new HashMap<>(impl.augmentation); } } else if (base instanceof AugmentationHolder) { @SuppressWarnings("unchecked") Map<Class<? extends Augmentation<SourceDestKey>>, Augmentation<SourceDestKey>> aug =((AugmentationHolder<SourceDestKey>) base).augmentations(); if (!aug.isEmpty()) { this.augmentation = new HashMap<>(aug); } } }
public SourceDestKeyBuilder(SourceDestKey base) { this._sourceDestKey = base.getSourceDestKey(); if (base instanceof SourceDestKeyImpl) { SourceDestKeyImpl impl = (SourceDestKeyImpl) base; if (!impl.augmentation.isEmpty()) { this.augmentation = new HashMap<>(impl.augmentation); } } else if (base instanceof AugmentationHolder) { @SuppressWarnings("unchecked") AugmentationHolder<SourceDestKey> casted =(AugmentationHolder<SourceDestKey>) base; if (!casted.augmentations().isEmpty()) { this.augmentation = new HashMap<>(casted.augmentations()); } } }
if (!Objects.equals(_sourceDestKey, other.getSourceDestKey())) { return false; if (!e.getValue().equals(other.augmentation(e.getKey()))) { return false;
.getAddress()).getSourceDestKey(); SourceDestKeyBuilder sdb = new SourceDestKeyBuilder(srcDstKey); sdb.setDest(new SimpleAddress(getIpPrefix(sbMapping.getEid().getAddress())));