public NatTraversalBuilder(NatTraversal base) { this._etrUdpPort = base.getEtrUdpPort(); this._globalEtrRloc = base.getGlobalEtrRloc(); this._msRloc = base.getMsRloc(); this._msUdpPort = base.getMsUdpPort(); this._privateEtrRloc = base.getPrivateEtrRloc(); this._rtrRlocs = base.getRtrRlocs(); if (base instanceof NatTraversalImpl) { NatTraversalImpl impl = (NatTraversalImpl) base; if (!impl.augmentation.isEmpty()) { this.augmentation = new HashMap<>(impl.augmentation); } } else if (base instanceof AugmentationHolder) { @SuppressWarnings("unchecked") AugmentationHolder<NatTraversal> casted =(AugmentationHolder<NatTraversal>) base; if (!casted.augmentations().isEmpty()) { this.augmentation = new HashMap<>(casted.augmentations()); } } }
public NatTraversalBuilder(NatTraversal base) { this._etrUdpPort = base.getEtrUdpPort(); this._globalEtrRloc = base.getGlobalEtrRloc(); this._msRloc = base.getMsRloc(); this._msUdpPort = base.getMsUdpPort(); this._privateEtrRloc = base.getPrivateEtrRloc(); this._rtrRlocs = base.getRtrRlocs(); if (base instanceof NatTraversalImpl) { NatTraversalImpl impl = (NatTraversalImpl) base; if (!impl.augmentation.isEmpty()) { this.augmentation = new HashMap<>(impl.augmentation); } } else if (base instanceof AugmentationHolder) { @SuppressWarnings("unchecked") Map<Class<? extends Augmentation<NatTraversal>>, Augmentation<NatTraversal>> aug =((AugmentationHolder<NatTraversal>) base).augmentations(); if (!aug.isEmpty()) { this.augmentation = new HashMap<>(aug); } } }
if (!Objects.equals(_etrUdpPort, other.getEtrUdpPort())) { return false;
if (!Objects.equals(_etrUdpPort, other.getEtrUdpPort())) { return false;