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 classByteArrayMap.Elementstatic classByteArrayMap.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 voidclear()booleancontainsKey(Object key)booleancontainsValue(Object value)Set<Map.Entry<byte[],byte[]>>entrySet()byte[]get(Object key)booleanisEmpty()Set<byte[]>keySet()byte[]put(byte[] key, byte[] value)voidputAll(Map<? extends byte[],? extends byte[]> m)byte[]remove(Object key)intsize()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:
containsKeyin interfaceMap<byte[],byte[]>
-
containsValue
public boolean containsValue(Object value)
- Specified by:
containsValuein interfaceMap<byte[],byte[]>
-
putAll
public void putAll(Map<? extends byte[],? extends byte[]> m)
-
values
public Collection<byte[]> values()
-
-