public final class RecyclableByteBufferList extends ArrayList<ByteBuffer> implements Recyclable
ByteBuffer list which is recyclable.
This implementation does not allow null elements to be added.modCount| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
add(ByteBuffer element) |
void |
add(int index,
ByteBuffer element) |
boolean |
addAll(Collection<? extends ByteBuffer> c) |
boolean |
addAll(int index,
Collection<? extends ByteBuffer> c) |
int |
getCapacity() |
static RecyclableByteBufferList |
newInstance()
Create a new empty
RecyclableByteBufferList instance |
static RecyclableByteBufferList |
newInstance(int minCapacity)
Create a new empty
RecyclableByteBufferList instance with the given capacity. |
boolean |
recycle()
Recycle this instance.
|
ByteBuffer |
remove(int index) |
boolean |
remove(Object o) |
ByteBuffer |
set(int index,
ByteBuffer element) |
static int |
threadLocalCapacity() |
static int |
threadLocalSize() |
clear, clone, contains, ensureCapacity, forEach, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, removeAll, removeIf, removeRange, replaceAll, retainAll, size, sort, spliterator, subList, toArray, toArray, trimToSizeequals, hashCodecontainsAll, toStringcontainsAll, equals, hashCodeparallelStream, streampublic static RecyclableByteBufferList newInstance()
RecyclableByteBufferList instancepublic static RecyclableByteBufferList newInstance(int minCapacity)
RecyclableByteBufferList instance with the given capacity.public int getCapacity()
public boolean addAll(Collection<? extends ByteBuffer> c)
addAll 在接口中 Collection<ByteBuffer>addAll 在接口中 List<ByteBuffer>addAll 在类中 ArrayList<ByteBuffer>public boolean addAll(int index,
Collection<? extends ByteBuffer> c)
addAll 在接口中 List<ByteBuffer>addAll 在类中 ArrayList<ByteBuffer>public boolean add(ByteBuffer element)
add 在接口中 Collection<ByteBuffer>add 在接口中 List<ByteBuffer>add 在类中 ArrayList<ByteBuffer>public void add(int index,
ByteBuffer element)
add 在接口中 List<ByteBuffer>add 在类中 ArrayList<ByteBuffer>public ByteBuffer set(int index, ByteBuffer element)
set 在接口中 List<ByteBuffer>set 在类中 ArrayList<ByteBuffer>public ByteBuffer remove(int index)
remove 在接口中 List<ByteBuffer>remove 在类中 ArrayList<ByteBuffer>public boolean remove(Object o)
remove 在接口中 Collection<ByteBuffer>remove 在接口中 List<ByteBuffer>remove 在类中 ArrayList<ByteBuffer>public boolean recycle()
Recyclablerecycle 在接口中 Recyclablepublic static int threadLocalCapacity()
public static int threadLocalSize()
Copyright © 2021. All rights reserved.