/** * Get whether all required elements were found. * * @return true if all required elements were found. */ boolean getRequiredFound() { if (m_requiredFound == null) return true; return m_requiredFound.isEmpty(); }
/** * Determine whether or not this list is empty. * * @return true if there are no parameters */ public boolean isEmpty() { return parameters.isEmpty(); }
/** * Get whether all required elements were found. * * @return true if all required elements were found. */ boolean getRequiredFound() { if (m_requiredFound == null) return true; return m_requiredFound.isEmpty(); }
public boolean isEmpty() { return table.isEmpty(); }
public boolean isEmpty() { return table.isEmpty(); }
public boolean isEmpty() { return table.isEmpty(); }
public boolean isEmpty() { return table.isEmpty(); }
public boolean isEmpty() { return table.isEmpty(); }
@Override public boolean isEmpty() { return map.isEmpty() && nulls.isEmpty(); }
/** *@see Hashtable */ public boolean isEmpty() { purge(); return super.isEmpty(); }
public synchronized boolean isEmpty() { return project.getProperties().isEmpty(); }
/** *@see Hashtable */ public boolean isEmpty() { purge(); return super.isEmpty(); }
private void remove0(String key) { if(!java1 && tlm != null) { Hashtable ht = (Hashtable) ((ThreadLocalMap)tlm).get(); if(ht != null) { ht.remove(key); // clean up if this was the last key if (ht.isEmpty()) { clear0(); } } } }
/** * Check if the table is empty. * @return true if it is. */ public boolean isEmpty() { initAll(); return super.isEmpty(); }
private synchronized boolean waitForWork() { if (calls.isEmpty() && !shouldCloseConnection.get() && running.get()) { long timeout = maxIdleTime- (Time.now()-lastActivity.get()); if (timeout>0) { try { wait(timeout); } catch (InterruptedException e) {} } } if (!calls.isEmpty() && !shouldCloseConnection.get() && running.get()) { return true; } else if (shouldCloseConnection.get()) { return false; } else if (calls.isEmpty()) { // idle connection closed or stopped markClosed(null); return false; } else { // get stopped but there are still pending requests markClosed((IOException)new IOException().initCause( new InterruptedException())); return false; } }
if (!calls.isEmpty()) { LOG.warn( "A connection is closed for no cause and calls are not empty");
if (!fileCopyMap.isEmpty()) { log("Copying " + fileCopyMap.size() + " file" + (fileCopyMap.size() == 1 ? "" : "s")
/** * Serialise the given <code>Hashtable</code> to xml. * * <p>This methods only works if the {@link Hashtable} contains <code>String</code> * objects. * * @param h The hashtable to be serialized to XML * * @throws IOException Should an I/O error occur. */ public void serializeHashtable(Hashtable<?, ?> h) throws IOException { this.xml.openElement("map", !h.isEmpty()); for (Enumeration<?> e = h.keys(); e.hasMoreElements();) { Object key = e.nextElement(); Object value = h.get(key); this.xml.openElement("element"); this.xml.openElement("key"); serialize(key, "key"); this.xml.closeElement(); this.xml.openElement("value"); serialize(value, "value"); this.xml.closeElement(); this.xml.closeElement(); } this.xml.closeElement(); }
if (antTypeTable.isEmpty()) {
/** *@see Hashtable */ public boolean isEmpty() { purge(); return super.isEmpty(); }