Class ByteArrayMap
- java.lang.Object
-
- com.moilioncircle.redis.replicator.util.ByteArrayMap
-
- All Implemented Interfaces:
Serializable
,Map<byte[],byte[]>
public class ByteArrayMap extends Object implements Map<byte[],byte[]>, Serializable
- Since:
- 2.2.0
- Author:
- Leon Chen
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ByteArrayMap.Element
static class
ByteArrayMap.Node
-
Field Summary
Fields Modifier and Type Field Description protected Map<ByteArrayMap.Element,ByteArrayMap.Element>
map
-
Constructor Summary
Constructors Constructor Description ByteArrayMap()
ByteArrayMap(boolean ordered)
ByteArrayMap(boolean ordered, int initialCapacity)
ByteArrayMap(boolean ordered, int initialCapacity, float loadFactor)
ByteArrayMap(boolean ordered, Map<? extends byte[],? extends byte[]> m)
ByteArrayMap(Map<? extends byte[],? extends byte[]> m)
-
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<byte[],byte[]>>
entrySet()
byte[]
get(Object key)
boolean
isEmpty()
Set<byte[]>
keySet()
byte[]
put(byte[] key, byte[] value)
void
putAll(Map<? extends byte[],? extends byte[]> m)
byte[]
remove(Object key)
int
size()
Collection<byte[]>
values()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAll
-
-
-
-
Field Detail
-
map
protected final Map<ByteArrayMap.Element,ByteArrayMap.Element> map
-
-
Constructor Detail
-
ByteArrayMap
public ByteArrayMap(Map<? extends byte[],? extends byte[]> m)
-
ByteArrayMap
public ByteArrayMap(boolean ordered, Map<? extends byte[],? extends byte[]> m)
-
ByteArrayMap
public ByteArrayMap()
-
ByteArrayMap
public ByteArrayMap(boolean ordered)
-
ByteArrayMap
public ByteArrayMap(boolean ordered, int initialCapacity)
-
ByteArrayMap
public ByteArrayMap(boolean ordered, int initialCapacity, float loadFactor)
-
-
Method Detail
-
containsKey
public boolean containsKey(Object key)
- Specified by:
containsKey
in interfaceMap<byte[],byte[]>
-
containsValue
public boolean containsValue(Object value)
- Specified by:
containsValue
in interfaceMap<byte[],byte[]>
-
putAll
public void putAll(Map<? extends byte[],? extends byte[]> m)
-
values
public Collection<byte[]> values()
-
-