Package rocks.xmpp.util.cache
Class DirectoryCache
- java.lang.Object
-
- rocks.xmpp.util.cache.DirectoryCache
-
-
Constructor Summary
Constructors Constructor Description DirectoryCache(Path cacheDirectory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()booleancontainsKey(Object key)booleancontainsValue(Object value)Set<Map.Entry<String,byte[]>>entrySet()voidforEach(BiConsumer<? super String,? super byte[]> action)byte[]get(Object key)booleanisEmpty()Set<String>keySet()byte[]put(String key, byte[] value)voidputAll(Map<? extends String,? extends byte[]> m)byte[]remove(Object key)intsize()Collection<byte[]>values()-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, equals, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAll
-
-
-
-
Constructor Detail
-
DirectoryCache
public DirectoryCache(Path cacheDirectory)
-
-
Method Detail
-
containsKey
public final boolean containsKey(Object key)
- Specified by:
containsKeyin interfaceMap<String,byte[]>
-
containsValue
public final boolean containsValue(Object value)
- Specified by:
containsValuein interfaceMap<String,byte[]>
-
put
public final byte[] put(String key, byte[] value)
-
remove
public final byte[] remove(Object key)
-
values
public final Collection<byte[]> values()
-
forEach
public final void forEach(BiConsumer<? super String,? super byte[]> action)
-
-