public NshEntriesBuilder(NshEntries base) { this._nshEntry = base.getNshEntry(); if (base instanceof NshEntriesImpl) { NshEntriesImpl impl = (NshEntriesImpl) 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.opendaylight.params.xml.ns.yang.vpp.nsh.rev160624.vpp.nsh.state.NshEntries> casted =(AugmentationHolder<org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.vpp.nsh.rev160624.vpp.nsh.state.NshEntries>) base; if (!casted.augmentations().isEmpty()) { this.augmentation = new HashMap<>(casted.augmentations()); } } }
if (!Objects.equals(_nshEntry, other.getNshEntry())) { return false;
@Override protected VppNsh convert(final VppNshState operationalData) { // Just convert operational data into config data // The operational data are queried from lower layer using readerCustomizers from this plugin LOG.info("Initializing VppNsh config data from: {}", operationalData); VppNshBuilder vppNshBuilder = new VppNshBuilder(); NshEntriesBuilder nshEntriesBuilder = new NshEntriesBuilder() .setNshEntry(operationalData.getNshEntries().getNshEntry().stream() .map(oper -> new NshEntryBuilder(oper).setName(oper.getName()).build()) .collect(Collectors.toList())); vppNshBuilder.setNshEntries(nshEntriesBuilder.build()); NshMapsBuilder nshMapsBuilder = new NshMapsBuilder() .setNshMap(operationalData.getNshMaps().getNshMap().stream() .map(oper -> new NshMapBuilder(oper).setName(oper.getName()).build()) .collect(Collectors.toList())); vppNshBuilder.setNshMaps(nshMapsBuilder.build()); return vppNshBuilder.build(); } }