Class ByteArrayList
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<byte[]>
-
- com.moilioncircle.redis.replicator.util.ByteArrayList
-
- All Implemented Interfaces:
Serializable,Iterable<byte[]>,Collection<byte[]>,List<byte[]>
public class ByteArrayList extends AbstractList<byte[]> implements Serializable
- Since:
- 3.0.0
- Author:
- Leon Chen
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected List<ByteArrayMap.Element>list-
Fields inherited from class java.util.AbstractList
modCount
-
-
Constructor Summary
Constructors Constructor Description ByteArrayList()ByteArrayList(int initialCapacity)ByteArrayList(Collection<? extends byte[]> c)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(int index, byte[] bytes)byte[]get(int index)Iterator<byte[]>iterator()ListIterator<byte[]>listIterator()byte[]remove(int index)byte[]set(int index, byte[] bytes)intsize()-
Methods inherited from class java.util.AbstractList
add, addAll, clear, equals, hashCode, indexOf, lastIndexOf, listIterator, removeRange, subList
-
Methods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
Methods inherited from interface java.util.List
addAll, contains, containsAll, isEmpty, remove, removeAll, replaceAll, retainAll, sort, spliterator, toArray, toArray
-
-
-
-
Field Detail
-
list
protected final List<ByteArrayMap.Element> list
-
-
Constructor Detail
-
ByteArrayList
public ByteArrayList()
-
ByteArrayList
public ByteArrayList(int initialCapacity)
-
ByteArrayList
public ByteArrayList(Collection<? extends byte[]> c)
-
-
Method Detail
-
size
public int size()
- Specified by:
sizein interfaceCollection<byte[]>- Specified by:
sizein interfaceList<byte[]>- Specified by:
sizein classAbstractCollection<byte[]>
-
get
public byte[] get(int index)
- Specified by:
getin interfaceList<byte[]>- Specified by:
getin classAbstractList<byte[]>
-
iterator
public Iterator<byte[]> iterator()
- Specified by:
iteratorin interfaceCollection<byte[]>- Specified by:
iteratorin interfaceIterable<byte[]>- Specified by:
iteratorin interfaceList<byte[]>- Overrides:
iteratorin classAbstractList<byte[]>
-
listIterator
public ListIterator<byte[]> listIterator()
- Specified by:
listIteratorin interfaceList<byte[]>- Overrides:
listIteratorin classAbstractList<byte[]>
-
set
public byte[] set(int index, byte[] bytes)- Specified by:
setin interfaceList<byte[]>- Overrides:
setin classAbstractList<byte[]>
-
add
public void add(int index, byte[] bytes)- Specified by:
addin interfaceList<byte[]>- Overrides:
addin classAbstractList<byte[]>
-
remove
public byte[] remove(int index)
- Specified by:
removein interfaceList<byte[]>- Overrides:
removein classAbstractList<byte[]>
-
-