/** Returns {@code true} if this map contains no key-value mappings. */ public boolean isEmpty() { return map.isEmpty(); }
@Override public boolean isEmpty() { return delegateMap.isEmpty(); }
@Override public boolean isEmpty() { return delegateMap.isEmpty(); }
/** Returns {@code true} if this map contains no key-value mappings. */ public boolean isEmpty() { return map.isEmpty(); }
/** Returns {@code true} if this map contains no key-value mappings. */ public boolean isEmpty() { return map.isEmpty(); }
/** * Returns {@code true} if this map contains no key-value mappings. */ public boolean isEmpty() { return map.isEmpty(); }
/** * Returns {@code true} if this map contains no key-value mappings. */ public boolean isEmpty() { return map.isEmpty(); }
@Override public boolean isEmpty() { return data.isEmpty(); }
@Override public boolean isEmpty() { return data.isEmpty(); }
/** * Return whether is this schema is empty (does not contain any objects). * * @return {@code true} if this schema is empty, {@code false} otherwise */ public boolean isEmpty() { return tablesAndViews.isEmpty() && synonyms.isEmpty() && indexes.isEmpty() && sequences.isEmpty() && triggers.isEmpty() && constraints.isEmpty() && constants.isEmpty() && functions.isEmpty(); }
/** * Does this registry currently contain registrations? * * @return true/false */ public boolean hasRegistrations() { return !sessionFactoryMap.isEmpty(); }
@Override public boolean isEmpty() { return mMap.isEmpty(); }
boolean isEmpty() { readLock.lock(); try { return messageIdPartitionMap.isEmpty(); } finally { readLock.unlock(); } }
private Map<K, Long> createAsMap() { Map<K,Long> resultMap = new LinkedHashMap<K, Long>(); if(map != null && !map.isEmpty()){ for(Entry<K, AtomicLong> entry : map.entrySet()){ resultMap.put(entry.getKey(), entry.getValue().get()); } } return Collections.unmodifiableMap(resultMap); }
private Map<K, Long> createAsMap() { Map<K,Long> resultMap = new LinkedHashMap<K, Long>(); if(map != null && !map.isEmpty()){ for(Entry<K, AtomicLong> entry : map.entrySet()){ resultMap.put(entry.getKey(), entry.getValue().get()); } } return Collections.unmodifiableMap(resultMap); }
public int getAccessTokenCount() { Assert.state(accessTokenStore.isEmpty() || accessTokenStore.size() >= accessTokenToRefreshTokenStore.size(), "Too many refresh tokens"); Assert.state(accessTokenStore.size() == authenticationToAccessTokenStore.size(), "Inconsistent token store state"); Assert.state(accessTokenStore.size() <= authenticationStore.size(), "Inconsistent authentication store state"); return accessTokenStore.size(); }
protected boolean isEmpty(Cache cache) { ConcurrentHashMap<?, ?> nativeCache = (ConcurrentHashMap<?, ?>) cache.getNativeCache(); return nativeCache.isEmpty(); }
@Override @CacheRemoveAll(afterInvocation = false) public void earlyRemoveAll() { ConcurrentHashMap<?, ?> nativeCache = (ConcurrentHashMap<?, ?>) defaultCache.getNativeCache(); if (!nativeCache.isEmpty()) { throw new AssertionError("Cache was expected to be empty"); } }
@Override @CacheRemoveAll(afterInvocation = false) public void earlyRemoveAll() { ConcurrentHashMap<?, ?> nativeCache = (ConcurrentHashMap<?, ?>) defaultCache.getNativeCache(); if (!nativeCache.isEmpty()) { throw new AssertionError("Cache was expected to be empty"); } }
void tryFinish() { if (workerThreads.isEmpty()) { this.getSourceMetrics().clear(); manager.finishRecoveredSource(this); } }