Package org.miaixz.bus.core.io
Class SegmentBuffer
- All Implemented Interfaces:
Iterable<ByteString>,Collection<ByteString>,List<ByteString>,RandomAccess,SequencedCollection<ByteString>
- Since:
- Java 17+
- Author:
- Kimi Liu
-
Field Summary
FieldsFields inherited from class java.util.AbstractList
modCount -
Method Summary
Modifier and TypeMethodDescriptionget(int i) static SegmentBufferof(ByteString... byteStrings) 构造final intsize()Methods inherited from class java.util.AbstractList
add, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subListMethods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.List
addAll, addFirst, addLast, contains, containsAll, getFirst, getLast, isEmpty, remove, removeAll, removeFirst, removeLast, replaceAll, retainAll, reversed, sort, spliterator, toArray, toArray
-
Field Details
-
byteStrings
-
trie
public final int[] trie
-
-
Method Details
-
of
构造- Parameters:
byteStrings- 字符串- Returns:
- the object
-
get
- Specified by:
getin interfaceList<ByteString>- Specified by:
getin classAbstractList<ByteString>
-
size
public final int size()- Specified by:
sizein interfaceCollection<ByteString>- Specified by:
sizein interfaceList<ByteString>- Specified by:
sizein classAbstractCollection<ByteString>
-