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 void
clear()
boolean
containsKey(Object key)
boolean
containsValue(Object value)
Set<Map.Entry<String,byte[]>>
entrySet()
void
forEach(BiConsumer<? super String,? super byte[]> action)
byte[]
get(Object key)
boolean
isEmpty()
Set<String>
keySet()
byte[]
put(String key, byte[] value)
void
putAll(Map<? extends String,? extends byte[]> m)
byte[]
remove(Object key)
int
size()
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:
containsKey
in interfaceMap<String,byte[]>
-
containsValue
public final boolean containsValue(Object value)
- Specified by:
containsValue
in 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)
-
-