return false; if (!Objects.equals(_name, other.getName())) { return false;
public NamingContextBuilder(NamingContext base) { if (base.key() == null) { this.key = new NamingContextKey( base.getName() ); this._name = base.getName(); } else { this.key = base.key(); this._name = key.getName(); } this._mappings = base.getMappings(); if (base instanceof NamingContextImpl) { NamingContextImpl impl = (NamingContextImpl) base; if (!impl.augmentation.isEmpty()) { this.augmentation = new HashMap<>(impl.augmentation); } } else if (base instanceof AugmentationHolder) { @SuppressWarnings("unchecked") AugmentationHolder<NamingContext> casted =(AugmentationHolder<NamingContext>) base; if (!casted.augmentations().isEmpty()) { this.augmentation = new HashMap<>(casted.augmentations()); } } }
public NamingContextBuilder(NamingContext base) { if (base.getKey() == null) { this._key = new NamingContextKey( base.getName() ); this._name = base.getName(); } else { this._key = base.getKey(); this._name = _key.getName(); } this._mappings = base.getMappings(); if (base instanceof NamingContextImpl) { NamingContextImpl impl = (NamingContextImpl) base; if (!impl.augmentation.isEmpty()) { this.augmentation = new HashMap<>(impl.augmentation); } } else if (base instanceof AugmentationHolder) { @SuppressWarnings("unchecked") AugmentationHolder<org.opendaylight.yang.gen.v1.urn.honeycomb.params.xml.ns.yang.naming.context.rev160513.contexts.NamingContext> casted =(AugmentationHolder<org.opendaylight.yang.gen.v1.urn.honeycomb.params.xml.ns.yang.naming.context.rev160513.contexts.NamingContext>) base; if (!casted.augmentations().isEmpty()) { this.augmentation = new HashMap<>(casted.augmentations()); } } }
return false; if (!Objects.equals(_name, other.getName())) { return false;