if (!Objects.equals(_servicePath, other.getServicePath())) { return false; if (!e.getValue().equals(other.augmentation(e.getKey()))) { return false;
public ServicePathBuilder(ServicePath base) { this._servicePath = base.getServicePath(); if (base instanceof ServicePathImpl) { ServicePathImpl impl = (ServicePathImpl) base; if (!impl.augmentation.isEmpty()) { this.augmentation = new HashMap<>(impl.augmentation); } } else if (base instanceof AugmentationHolder) { @SuppressWarnings("unchecked") Map<Class<? extends Augmentation<ServicePath>>, Augmentation<ServicePath>> aug =((AugmentationHolder<ServicePath>) base).augmentations(); if (!aug.isEmpty()) { this.augmentation = new HashMap<>(aug); } } }
public ServicePathBuilder(ServicePath base) { this._servicePath = base.getServicePath(); if (base instanceof ServicePathImpl) { ServicePathImpl impl = (ServicePathImpl) base; if (!impl.augmentation.isEmpty()) { this.augmentation = new HashMap<>(impl.augmentation); } } else if (base instanceof AugmentationHolder) { @SuppressWarnings("unchecked") AugmentationHolder<ServicePath> casted =(AugmentationHolder<ServicePath>) base; if (!casted.augmentations().isEmpty()) { this.augmentation = new HashMap<>(casted.augmentations()); } } }
if (!Objects.equals(_servicePath, other.getServicePath())) { return false; if (!e.getValue().equals(other.augmentation(e.getKey()))) { return false;
long serviceIndex = ((ServicePath) eid.getAddress()).getServicePath().getServiceIndex(); int index = LispAddressUtil.STARTING_SERVICE_INDEX - (int) serviceIndex; Rloc rloc = locatorRecord.getRloc();