public InterfacesStateBuilder(InterfacesState base) { this._interface = base.getInterface(); if (base instanceof InterfacesStateImpl) { InterfacesStateImpl impl = (InterfacesStateImpl) base; if (!impl.augmentation.isEmpty()) { this.augmentation = new HashMap<>(impl.augmentation); } } else if (base instanceof AugmentationHolder) { @SuppressWarnings("unchecked") Map<Class<? extends Augmentation<InterfacesState>>, Augmentation<InterfacesState>> aug =((AugmentationHolder<InterfacesState>) base).augmentations(); if (!aug.isEmpty()) { this.augmentation = new HashMap<>(aug); } } }
if (!Objects.equals(_interface, other.getInterface())) { return false; if (!e.getValue().equals(other.getAugmentation(e.getKey()))) { return false;
if (!Objects.equals(_interface, other.getInterface())) { return false; if (!e.getValue().equals(other.augmentation(e.getKey()))) { return false;
if (other.getInterface() != null) { return false; } else if(!_interface.equals(other.getInterface())) { return false; if (!e.getValue().equals(other.getAugmentation(e.getKey()))) { return false;
public InterfacesStateBuilder(InterfacesState base) { this._interface = base.getInterface(); if (base instanceof InterfacesStateImpl) { InterfacesStateImpl impl = (InterfacesStateImpl) 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.interfaces.rev140508.InterfacesState> casted =(AugmentationHolder<org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.InterfacesState>) base; if (!casted.augmentations().isEmpty()) { this.augmentation = new HashMap<>(casted.augmentations()); } } }
public InterfacesStateBuilder(InterfacesState base) { this._interface = base.getInterface(); if (base instanceof InterfacesStateImpl) { InterfacesStateImpl impl = (InterfacesStateImpl) 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.interfaces.rev140508.InterfacesState> casted =(AugmentationHolder<org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.InterfacesState>) base; if (!casted.augmentations().isEmpty()) { this.augmentation = new HashMap<>(casted.augmentations()); } } }
/** * @return <code>java.util.List</code> <code>interface</code>, or an empty list if it is not present */ default @NonNull List<Interface> nonnullInterface() { return CodeHelpers.nonnull(getInterface()); }
@Override protected Interfaces convert(final InterfacesState operationalData) { LOG.debug("InterfacesInitializer.convert()"); InterfacesBuilder interfacesBuilder = new InterfacesBuilder(); interfacesBuilder .setInterface(Lists.transform(operationalData.getInterface(), InterfacesInitializer::initialize)); return interfacesBuilder.build(); }