- Add the Codota plugin to your IDE and get smart completions
private void myMethod () {StringBuilder s =
new StringBuilder()
new StringBuilder(32)
String str;new StringBuilder(str)
- Smart code suggestions by Codota
}
/** * Checks whether a given {@link ObjectId} is already cached on this {@code ObjectCache} */ public boolean contains(ObjectId id) { return sharedCache.get().contains(keyPrefix.create(id)); }
/** * Checks whether a given {@link ObjectId} is already cached on this {@code ObjectCache} */ public boolean contains(ObjectId id) { return sharedCache.get().contains(keyPrefix.create(id)); }
public @Test void testCacheDisabled() { cache = createCache(0, 0L); CacheKey k1 = repo1Id.create(obj.getId()); cache.put(k1, obj); assertFalse(cache.contains(k1)); assertEquals(0L, cache.sizeBytes()); }
public @Test void testCacheDisabled() { SharedCache cache = SharedCache.build(0L); Key k1 = repo1Id.create(obj.getId()); cache.put(k1, obj); assertFalse(cache.contains(k1)); assertEquals(0L, cache.sizeBytes()); }