public static final class ByteString.ByteString1C extends CompactByteString
ByteString.ByteString1, ByteString.ByteString1$, ByteString.ByteString1C, ByteString.ByteString1C$, ByteString.ByteStrings, ByteString.ByteStrings$
scala.collection.immutable.IndexedSeq.Impl<A>
scala.PartialFunction.AndThen<A,B,C>, scala.PartialFunction.Lifted<A,B>, scala.PartialFunction.OrElse<A,B>, scala.PartialFunction.Unlifted<A,B>
scala.collection.IndexedSeqLike.Elements
scala.collection.SeqLike.CombinationsItr, scala.collection.SeqLike.PermutationsItr
scala.collection.TraversableLike.WithFilter
scala.collection.TraversableOnce.BufferedCanBuildFrom<A,CC extends scala.collection.TraversableOnce<java.lang.Object>>, scala.collection.TraversableOnce.FlattenOps<A>, scala.collection.TraversableOnce.ForceImplicitAmbiguity, scala.collection.TraversableOnce.MonadOps<A>, scala.collection.TraversableOnce.OnceCanBuildFrom<A>
Modifier and Type | Method and Description |
---|---|
byte |
apply(int idx) |
java.nio.ByteBuffer |
asByteBuffer()
Returns a read-only ByteBuffer that directly wraps this ByteString
if it is not fragmented.
|
scala.collection.immutable.Iterable<java.nio.ByteBuffer> |
asByteBuffers()
Scala API: Returns an immutable Iterable of read-only ByteBuffers that directly wraps this ByteStrings
all fragments.
|
java.lang.String |
decodeString(java.lang.String charset)
Decodes this ByteString using a charset to produce a String.
|
ByteIterator.ByteArrayIterator |
iterator() |
int |
length() |
ByteString |
slice(int from,
int until) |
apply, apply, apply, apply, apply, apply, compact, empty, fromArray, isCompact
canBuildFrom, concat, copyToArray, copyToBuffer, drop, dropRight, dropWhile, foreach, fromArray, fromByteBuffer, fromString, fromString, getByteBuffers, head, indexOf, indexWhere, init, last, mapI, newBuilder, span, splitAt, tail, take, takeRight, takeWhile, toArray, toArray, toByteBuffer, utf8String
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
andThen, applyOrElse, isDefinedAt, lift, orElse, runWith
apply, apply$mcDD$sp, apply$mcDF$sp, apply$mcDI$sp, apply$mcDJ$sp, apply$mcFD$sp, apply$mcFF$sp, apply$mcFI$sp, apply$mcFJ$sp, apply$mcID$sp, apply$mcIF$sp, apply$mcII$sp, apply$mcIJ$sp, apply$mcJD$sp, apply$mcJF$sp, apply$mcJI$sp, apply$mcJJ$sp, apply$mcVD$sp, apply$mcVF$sp, apply$mcVI$sp, apply$mcVJ$sp, apply$mcZD$sp, apply$mcZF$sp, apply$mcZI$sp, apply$mcZJ$sp, compose, toString
hashCode, thisCollection, toBuffer, toCollection
$colon$plus, $plus$colon, combinations, contains, containsSlice, corresponds, diff, distinct, endsWith, indexOfSlice, indexOfSlice, indexWhere, indices, intersect, isEmpty, lastIndexOfSlice, lastIndexOfSlice, lastIndexWhere, lengthCompare, padTo, patch, permutations, reverse, reverseIterator, reverseMap, segmentLength, size, sortBy, sorted, sortWith, startsWith, toString, union, updated, view, view
canEqual, exists, find, foldRight, forall, grouped, reduceRight, sameElements, sliding, sliding, toIterable, toIterator, toStream, zip, zipAll, zipWithIndex
$plus$plus, $plus$plus$colon, $plus$plus$colon, collect, filter, filterNot, flatMap, groupBy, hasDefiniteSize, headOption, inits, isTraversableAgain, lastOption, map, partition, repr, scan, scanLeft, scanRight, sliceWithKnownBound, sliceWithKnownDelta, stringPrefix, tails, to, toTraversable, withFilter
$colon$bslash, $div$colon, addString, addString, addString, aggregate, collectFirst, copyToArray, copyToArray, copyToBuffer, count, fold, foldLeft, max, maxBy, min, minBy, mkString, mkString, mkString, nonEmpty, product, reduce, reduceLeft, reduceLeftOption, reduceOption, reduceRightOption, reversed, sum, toList, toMap, toSet, toVector
public byte apply(int idx)
apply
in interface scala.collection.GenSeqLike<java.lang.Object,ByteString>
apply
in interface scala.collection.SeqLike<java.lang.Object,ByteString>
apply
in class ByteString
public int length()
public ByteIterator.ByteArrayIterator iterator()
iterator
in interface scala.collection.GenIterableLike<java.lang.Object,ByteString>
iterator
in interface scala.collection.IndexedSeqLike<java.lang.Object,ByteString>
iterator
in interface scala.collection.IterableLike<java.lang.Object,ByteString>
iterator
in class ByteString
public java.nio.ByteBuffer asByteBuffer()
ByteString
asByteBuffer
in class ByteString
public scala.collection.immutable.Iterable<java.nio.ByteBuffer> asByteBuffers()
ByteString
asByteBuffers
in class ByteString
public java.lang.String decodeString(java.lang.String charset)
ByteString
decodeString
in class ByteString
public ByteString slice(int from, int until)
slice
in interface scala.collection.GenTraversableLike<java.lang.Object,ByteString>
slice
in interface scala.collection.IndexedSeqOptimized<java.lang.Object,ByteString>
slice
in interface scala.collection.IterableLike<java.lang.Object,ByteString>
slice
in interface scala.collection.TraversableLike<java.lang.Object,ByteString>
slice
in class ByteString