@XmlElementWrapper(name="sessions") @XmlElement(name="session") public Collection<MonitoringSession> getSessions() { return Collections2.transform(sessions.getSession(), new Function<Session, MonitoringSession>() { @Nullable @Override public MonitoringSession apply(@Nullable final Session input) { return new MonitoringSession(input); } }); } }
public SessionsBuilder(Sessions base) { this._session = base.getSession(); if (base instanceof SessionsImpl) { SessionsImpl impl = (SessionsImpl) 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.netconf.state.Sessions> casted =(AugmentationHolder<org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.netconf.monitoring.rev101004.netconf.state.Sessions>) base; if (!casted.augmentations().isEmpty()) { this.augmentation = new HashMap<>(casted.augmentations()); } } }
public SessionsBuilder(Sessions base) { this._session = base.getSession(); if (base instanceof SessionsImpl) { SessionsImpl impl = (SessionsImpl) 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.netconf.state.Sessions> casted =(AugmentationHolder<org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.netconf.monitoring.rev101004.netconf.state.Sessions>) base; if (!casted.augmentations().isEmpty()) { this.augmentation = new HashMap<>(casted.augmentations()); } } }
if (other.getSession() != null) { return false; } else if(!_session.equals(other.getSession())) { return false;
if (!Objects.equals(_session, other.getSession())) { return false;