public NetconfStateBuilder(NetconfState base) { this._capabilities = base.getCapabilities(); this._datastores = base.getDatastores(); this._schemas = base.getSchemas(); this._sessions = base.getSessions(); this._statistics = base.getStatistics(); if (base instanceof NetconfStateImpl) { NetconfStateImpl impl = (NetconfStateImpl) 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.ietf.params.xml.ns.yang.ietf.netconf.monitoring.rev101004.NetconfState> casted =(AugmentationHolder<org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.netconf.monitoring.rev101004.NetconfState>) base; if (!casted.augmentations().isEmpty()) { this.augmentation = new HashMap<>(casted.augmentations()); } } }
public NetconfStateBuilder(NetconfState base) { this._capabilities = base.getCapabilities(); this._datastores = base.getDatastores(); this._schemas = base.getSchemas(); this._sessions = base.getSessions(); this._statistics = base.getStatistics(); if (base instanceof NetconfStateImpl) { NetconfStateImpl impl = (NetconfStateImpl) 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.ietf.params.xml.ns.yang.ietf.netconf.monitoring.rev101004.NetconfState> casted =(AugmentationHolder<org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.netconf.monitoring.rev101004.NetconfState>) base; if (!casted.augmentations().isEmpty()) { this.augmentation = new HashMap<>(casted.augmentations()); } } }
if (!Objects.equals(_capabilities, other.getCapabilities())) { return false;
if (other.getCapabilities() != null) { return false; } else if(!_capabilities.equals(other.getCapabilities())) { return false;