if (!Objects.equals(_distinguishedName, other.getDistinguishedName())) { return false; if (!e.getValue().equals(other.augmentation(e.getKey()))) { return false;
public DistinguishedNameBuilder(DistinguishedName base) { this._distinguishedName = base.getDistinguishedName(); if (base instanceof DistinguishedNameImpl) { DistinguishedNameImpl impl = (DistinguishedNameImpl) base; if (!impl.augmentation.isEmpty()) { this.augmentation = new HashMap<>(impl.augmentation); } } else if (base instanceof AugmentationHolder) { @SuppressWarnings("unchecked") Map<Class<? extends Augmentation<DistinguishedName>>, Augmentation<DistinguishedName>> aug =((AugmentationHolder<DistinguishedName>) base).augmentations(); if (!aug.isEmpty()) { this.augmentation = new HashMap<>(aug); } } }
public DistinguishedNameBuilder(DistinguishedName base) { this._distinguishedName = base.getDistinguishedName(); if (base instanceof DistinguishedNameImpl) { DistinguishedNameImpl impl = (DistinguishedNameImpl) base; if (!impl.augmentation.isEmpty()) { this.augmentation = new HashMap<>(impl.augmentation); } } else if (base instanceof AugmentationHolder) { @SuppressWarnings("unchecked") AugmentationHolder<DistinguishedName> casted =(AugmentationHolder<DistinguishedName>) base; if (!casted.augmentations().isEmpty()) { this.augmentation = new HashMap<>(casted.augmentations()); } } }
if (!Objects.equals(_distinguishedName, other.getDistinguishedName())) { return false; if (!e.getValue().equals(other.augmentation(e.getKey()))) { return false;
final Iterator<String> it = COLON_SPLITTER.split(dname.getDistinguishedName().getValue()).iterator(); String ip = it.next(); int port = Integer.valueOf(it.next());