Package io.datarouter.bytes
Class SortedByteArrays
java.lang.Object
java.util.AbstractCollection<byte[]>
java.util.AbstractList<byte[]>
io.datarouter.bytes.ByteArrays
io.datarouter.bytes.SortedByteArrays
- All Implemented Interfaces:
Iterable<byte[]>,Collection<byte[]>,List<byte[]>,RandomAccess,SequencedCollection<byte[]>
Restricts the input arrays to being ordered lexicographically, enabling binary search.
-
Field Summary
Fields inherited from class io.datarouter.bytes.ByteArrays
backingArray, endings, offset, valuesOffsetFields inherited from class java.util.AbstractList
modCount -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic SortedByteArraysofByteArrays(ByteArrays byteArrays) static SortedByteArraysofByteArraysNoValidation(ByteArrays byteArrays) static SortedByteArraysofIndividualArrays(List<byte[]> inputArrays) static SortedByteArraysofIndividualArraysNoValidation(List<byte[]> inputArrays) Methods inherited from class io.datarouter.bytes.ByteArrays
compareItem, compareItem, empty, equalsItem, get, getFrom, getLength, getTo, of, of, size, toBytesMethods 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, 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, containsAll, getFirst, getLast, isEmpty, remove, removeAll, removeFirst, removeLast, replaceAll, retainAll, reversed, sort, spliterator, toArray, toArray
-
Method Details
-
ofIndividualArrays
-
ofIndividualArraysNoValidation
-
ofByteArrays
-
ofByteArraysNoValidation
-
contains
- Specified by:
containsin interfaceCollection<byte[]>- Specified by:
containsin interfaceList<byte[]>- Overrides:
containsin classByteArrays
-