public NotificationBuilder(Notification base) { this._eventTime = base.getEventTime(); if (base instanceof NotificationImpl) { NotificationImpl impl = (NotificationImpl) base; if (!impl.augmentation.isEmpty()) { this.augmentation = new HashMap<>(impl.augmentation); } } else if (base instanceof AugmentationHolder) { @SuppressWarnings("unchecked") Map<Class<? extends Augmentation<Notification>>, Augmentation<Notification>> aug =((AugmentationHolder<Notification>) base).augmentations(); if (!aug.isEmpty()) { this.augmentation = new HashMap<>(aug); } } }
public NotificationBuilder(Notification base) { this._eventTime = base.getEventTime(); if (base instanceof NotificationImpl) { NotificationImpl impl = (NotificationImpl) 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.restconf.rev131019.notification.Notification> casted =(AugmentationHolder<org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.restconf.rev131019.notification.Notification>) base; if (!casted.augmentations().isEmpty()) { this.augmentation = new HashMap<>(casted.augmentations()); } } }
if (!Objects.equals(_eventTime, other.getEventTime())) { return false;
if (other.getEventTime() != null) { return false; } else if(!_eventTime.equals(other.getEventTime())) { return false;