if (!Objects.equals(_interfaceType, other.getInterfaceType())) { return false; if (!Objects.equals(_key, other.getKey())) { return false; if (!e.getValue().equals(other.getAugmentation(e.getKey()))) { return false;
public InterfaceTypeEntryBuilder(InterfaceTypeEntry base) { if (base.getKey() == null) { this._key = new InterfaceTypeEntryKey( base.getInterfaceType() ); this._interfaceType = base.getInterfaceType(); } else { this._key = base.getKey(); this._interfaceType = _key.getInterfaceType(); } if (base instanceof InterfaceTypeEntryImpl) { InterfaceTypeEntryImpl impl = (InterfaceTypeEntryImpl) 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.ovsdb.rev150105.ovsdb.node.attributes.InterfaceTypeEntry> casted =(AugmentationHolder<org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.ovsdb.rev150105.ovsdb.node.attributes.InterfaceTypeEntry>) base; if (!casted.augmentations().isEmpty()) { this.augmentation = new HashMap<>(casted.augmentations()); } } }
public boolean isOvsdbNodeDpdk(Node ovsdbNode) { boolean found = false; OvsdbNodeAugmentation ovsdbNodeAugmentation = extractNodeAugmentation(ovsdbNode); if (ovsdbNodeAugmentation != null) { List<InterfaceTypeEntry> ifTypes = ovsdbNodeAugmentation.getInterfaceTypeEntry(); if (ifTypes != null) { for (InterfaceTypeEntry ifType : ifTypes) { if (ifType.getInterfaceType().equals(InterfaceTypeDpdk.class)) { found = true; break; } } } } return found; }
public boolean isOvsdbNodeDpdk(Node ovsdbNode) { boolean found = false; OvsdbNodeAugmentation ovsdbNodeAugmentation = extractNodeAugmentation(ovsdbNode); if (ovsdbNodeAugmentation != null) { List<InterfaceTypeEntry> ifTypes = ovsdbNodeAugmentation.getInterfaceTypeEntry(); if (ifTypes != null) { for (InterfaceTypeEntry ifType : ifTypes) { if (ifType.getInterfaceType().equals(InterfaceTypeDpdk.class)) { found = true; break; } } } } return found; }
public boolean isOvsdbNodeDpdk(Node ovsdbNode) { boolean found = false; OvsdbNodeAugmentation ovsdbNodeAugmentation = extractNodeAugmentation(ovsdbNode); if (ovsdbNodeAugmentation != null) { List<InterfaceTypeEntry> ifTypes = ovsdbNodeAugmentation.getInterfaceTypeEntry(); if (ifTypes != null) { for (InterfaceTypeEntry ifType : ifTypes) { if (ifType.getInterfaceType().equals(InterfaceTypeDpdk.class)) { found = true; break; } } } } return found; }