public NatTraversalBuilder setMsUdpPort(final Integer value) { if (value != null) { checkMsUdpPortRange(value); } this._msUdpPort = value; return this; }
public NatTraversalBuilder setEtrUdpPort(final Integer value) { if (value != null) { checkEtrUdpPortRange(value); } this._etrUdpPort = value; return this; }
@Override public NatTraversal build() { return new NatTraversalImpl(this); }
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); } } }
private NatTraversalImpl(NatTraversalBuilder 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(); this.augmentation = ImmutableMap.copyOf(base.augmentation); }
public NatTraversalBuilder addAugmentation(Class<? extends Augmentation<NatTraversal>> augmentationType, Augmentation<NatTraversal> augmentationValue) { if (augmentationValue == null) { return removeAugmentation(augmentationType); } if (!(this.augmentation instanceof HashMap)) { this.augmentation = new HashMap<>(); } this.augmentation.put(augmentationType, augmentationValue); return this; }
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()); } } }
NatTraversalImpl(NatTraversalBuilder 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(); this.augmentation = ImmutableMap.copyOf(base.augmentation); }
public NatTraversalBuilder setMsUdpPort(final Integer value) { if (value != null) { checkMsUdpPortRange(value); } this._msUdpPort = value; return this; }
public NatTraversalBuilder setEtrUdpPort(final Integer value) { if (value != null) { checkEtrUdpPortRange(value); } this._etrUdpPort = value; return this; }
@Override public NatTraversal build() { return new NatTraversalImpl(this); }
public NatTraversalBuilder addAugmentation(Class<? extends Augmentation<NatTraversal>> augmentationType, Augmentation<NatTraversal> augmentationValue) { if (augmentationValue == null) { return removeAugmentation(augmentationType); } if (!(this.augmentation instanceof HashMap)) { this.augmentation = new HashMap<>(); } this.augmentation.put(augmentationType, augmentationValue); return this; }
if (!Objects.equals(_etrUdpPort, other.getEtrUdpPort())) { return false; if (!Objects.equals(_globalEtrRloc, other.getGlobalEtrRloc())) { return false; if (!Objects.equals(_msRloc, other.getMsRloc())) { return false; if (!Objects.equals(_msUdpPort, other.getMsUdpPort())) { return false; if (!Objects.equals(_privateEtrRloc, other.getPrivateEtrRloc())) { return false; if (!Objects.equals(_rtrRlocs, other.getRtrRlocs())) { return false; if (!e.getValue().equals(other.augmentation(e.getKey()))) { return false;
if (!Objects.equals(_etrUdpPort, other.getEtrUdpPort())) { return false; if (!Objects.equals(_globalEtrRloc, other.getGlobalEtrRloc())) { return false; if (!Objects.equals(_msRloc, other.getMsRloc())) { return false; if (!Objects.equals(_msUdpPort, other.getMsUdpPort())) { return false; if (!Objects.equals(_privateEtrRloc, other.getPrivateEtrRloc())) { return false; if (!Objects.equals(_rtrRlocs, other.getRtrRlocs())) { return false; if (!e.getValue().equals(other.augmentation(e.getKey()))) { return false;