NeighborImpl(NeighborBuilder base) { if (base.key() != null) { this.key = base.key(); } else { this.key = new NeighborKey(base.getIp()); } this._ip = key.getIp(); this._linkLayerAddress = base.getLinkLayerAddress(); this._origin = base.getOrigin(); this.augmentation = ImmutableMap.copyOf(base.augmentation); }
private NeighborImpl(NeighborBuilder base) { if (base.key() == null) { this.key = new NeighborKey( base.getIp() ); this._ip = base.getIp(); } else { this.key = base.key(); this._ip = key.getIp(); } this._linkLayerAddress = base.getLinkLayerAddress(); this._origin = base.getOrigin(); this.augmentation = ImmutableMap.copyOf(base.augmentation); }