Code example for Set

Methods: isEmpty, iterator

0
        } 
        catch (Exception e) {
            log.error(e);
        } 
 
        if (mBeans == null || mBeans.isEmpty()) {
            return null; 
        } 
        return mBeans.iterator().next();
    } 
 
 
    public Set<ObjectInstance> queryMBeans(ObjectName name, QueryExp query) throws JMXClientException {
        this.tryReconnect();
        try { 
            return this.mbs.queryMBeans(name, query);
        } 
        catch (IOException e) {
            throw new JMXClientException(e);
        } 
    }