Returns <tt>true</tt> if this map contains no key-value mappings.

@param includeDiskCache true to check the memory and disk maps; false to check
the memory map.
@return <tt>true</tt> if this map contains no key-value mappings.
341405
@Override
    public boolean isEmpty(boolean includeDiskCache) {

        boolean isCacheEmpty = false;

        /*
         * Check if the memory cache has entries
         */
        isCacheEmpty = cache.getNumberCacheEntries() == 0;

        /*
         * If the memory cache is not empty then we don't need to check the disk cache.
         * If the cache is an instanceof CacheProviderWrapper then we know it's not dynacache so
         * we need to check if it supports disk caching. If it doesn't then we don't need to check
         * if the disk cache is empty.
         */
        if (includeDiskCache && isCacheEmpty) {
            if (cache instanceof CacheProviderWrapper) {
                if (((CacheProviderWrapper) cache).featureSupport.isDiskCacheSupported()) {
                    isCacheEmpty = cache.getIdsSizeDisk() == 0;
                }
            } else {
                // Not an instanceof CacheProviderWrapper so we know it's dynacache and we know
                // getIdsSizeDisk is implemented.
                isCacheEmpty = cache.getIdsSizeDisk() == 0;
            }
        }
        return isCacheEmpty;
    }
399720
@Override
  public boolean containsKey(Object key)
  {
    if (key == null) {
      return false;
    }

    K []keys = _keys;

    for (int i = _size - 1 ; i >= 0; i--) {
      K testKey = keys[i];

      if (key.equals(testKey)) {
        return true;
      }
    }

    return false;
  }
1141986
public boolean isCachedAtomContainer(IAtomContainer container) {
        if (cachedDescriptorValues == null) return false;
        return (cachedDescriptorValues.get(PREVIOUS_ATOMCONTAINER) == container);
    }
1315351
public synchronized boolean containsKey(Object key) {
		if(size == 0) {
			return false;
		} else {
			try {
				XAttributeMap map = deserialize();
				return map.containsKey(key);
			} catch (IOException e) {
				e.printStackTrace();
				return false;
			}
		}
	}
950098
public boolean containsKey(final long key) {
        int index = longHash(key, mask);
        while (null != values[index]) {
            if (key == keys[index]) {
                return true;
            }
            index = ++index & mask;
        }
        return false;
    }
506879
private boolean sameKeys(KTypeSet<?> other) {
    if (other.size() != size()) {
      return false;
    }

    for (KTypeCursor<?> c : other) {
      if (!contains(Intrinsics.<KType> cast(c.value))) {
        return false;
      }
    }

    return true;
  }
1108058
@SuppressWarnings("unchecked")
    public synchronized boolean containsKey(Object key) {
        return cache.containsKey(key) || (isDiskCacheEnabled && getFileForKey((KeyT) key).exists());
    }
725429
public boolean containsKey(Object key) {
        Entry tab[] = mTable;

        if (key != null) {
            int hash = key.hashCode();
            int index = (hash & 0x7FFFFFFF) % tab.length;
            for (Entry e = tab[index], prev = null; e != null; e = e.mNext) {
                if (e.getValue() == null) {
                    // Clean up after a cleared Reference.
                    mModCount++;
                    if (prev != null) {
                        prev.mNext = e.mNext;
                    }
                    else {
                        tab[index] = e.mNext;
                    }
                    mCount--;
                }
                else if (e.mHash == hash && key.equals(e.mKey)) {
                    return true;
                }
                else {
                    prev = e;
                }
            }
        }
        else {
            for (Entry e = tab[0], prev = null; e != null; e = e.mNext) {
                if (e.getValue() == null) {
                    // Clean up after a cleared Reference.
                    mModCount++;
                    if (prev != null) {
                        prev.mNext = e.mNext;
                    }
                    else {
                        tab[0] = e.mNext;
                    }
                    mCount--;
                }
                else if (e.mKey == null) {
                    return true;
                }
                else {
                    prev = e;
                }
            }
        }

        return false;
    }
295875
Map<String, Edge> getEdgeCache(boolean includeUserDefined, boolean includeAutoGenerated) {
    return getCache(userEdgeCache, autoEdgeCache, includeUserDefined, includeAutoGenerated);
  }
934659
protected boolean isKeyNeeded(byte[] key) {
        // Empty partitions list has a special meaning in that all keys should be returned
        if (partitionsToFetch.isEmpty()) {
            return true;
        }
        // Exit early if the master partition corresponding to the key is not in the toFetch list
        if (!partitionsToFetch.contains(getMasterPartitionId(key))) {
            return false;
        }
        if (recordsPerPartition <= 0) {
            return true;
        }
        return true;
    }
1104109
def key?(key)
      # First, check if item is already cached in memory
      return true if @cache.key?(key)
      # Otherwise, it might be cached on disk
      # but we should not consider the disk cache if it is disabled
      return false unless disk_cache_enabled?

      path = path_to(hash(key))
      File.file?(path) && File.readable?(path)
    end
748759
@Override
	protected boolean isCacheValid() {

		boolean isValid = false;
		String servletMapping = config.getServletMapping();

		String binaryServletMapping = getBinaryServletMapping();
		if (super.isCacheValid()
				&& StringUtils.equals(servletMapping, cacheProperties.getProperty(JAWR_SERVLET_MAPPING))
				&& StringUtils.equals(binaryServletMapping, cacheProperties.getProperty(JAWR_BINARY_SERVLET_MAPPING))
				&& StringUtils.equals(Boolean.toString(config.isCssClasspathImageHandledByClasspathCss()),
						cacheProperties.getProperty(JawrConfig.JAWR_CSS_CLASSPATH_HANDLE_IMAGE))
				&& StringUtils.equals(cacheProperties.getProperty(JawrConfig.JAWR_BINARY_HASH_ALGORITHM),
						config.getBinaryHashAlgorithm())) {
			isValid = true;
		}

		return isValid;
	}
583490
@VisibleForTesting
  public boolean containsKey(K key) {
    Preconditions.checkNotNull(key, "key can not be null");
    return mCache.containsKey(key);
  }
1224448
public boolean isAllowedCachedLeft(final ContextEntry[] context,
                                       final InternalFactHandle handle) {
        return (indexed[0] || constraints[0].isAllowedCachedLeft(context[0], handle)) &&
               (indexed[1] || constraints[1].isAllowedCachedLeft(context[1], handle)) &&
               (indexed[2] || constraints[2].isAllowedCachedLeft( context[2], handle ));
    }
49148
@Override
    public boolean containsKey(Object key) {
        return key == null ? (indexOfNull() >= 0) : (indexOf(key, key.hashCode()) >= 0);
    }
1008036
private synchronized boolean isIncluded(String _clazzName) {
        if (includes.size() > 0) {
            for (String include : includes) {
                if (_clazzName.startsWith(include)) {
                    return true;

                }
            }
        } // if we dont have a list, we include nothing (to prevent circular classloader dependencies)
        return false;
    }
1203030
@Override
	public boolean containsKey(final Object key) {
		return propsMap.containsKey(key) ? true : defaults != null && defaults.containsKey(key);
	}