@Test public void testDisabledCache() { PathCache cache = PathCache.empty(); final Path file = new Path("name", EnumSet.of(Path.Type.file)); cache.put(file, AttributedList.<Path>emptyList()); assertFalse(cache.containsKey(file)); assertEquals(0, cache.size()); }
public static PathCache empty() { return EMPTY; }
PathCache extends AbstractCache<Path> { public static PathCache empty() { return EMPTY; } }
PathCache extends AbstractCache<Path> { public static PathCache empty() { return EMPTY; } PathCache(final int size); }
PathCache extends AbstractCache<Path> { public static PathCache empty() { return EMPTY; } PathCache(final int size); static PathCache empty(); @Override CacheReference<?> reference(final Path file); }
PathCache extends AbstractCache<Path> { public static PathCache empty() { return EMPTY; } PathCache(final int size); static PathCache empty(); @Override CacheReference<?> reference(final Path file);  }