public abstract class ByteString extends java.lang.Object implements scala.collection.immutable.IndexedSeq<java.lang.Object>, scala.collection.IndexedSeqOptimized<java.lang.Object,ByteString>
TODO: Add performance characteristics
Modifier and Type | Class and Description |
---|---|
static class |
ByteString.ByteString1
An unfragmented ByteString.
|
static class |
ByteString.ByteString1$
INTERNAL API: ByteString backed by exactly one array, with start / end markers
|
static class |
ByteString.ByteString1C
A compact (unsliced) and unfragmented ByteString, implementation of ByteString1C.
|
static class |
ByteString.ByteString1C$ |
static class |
ByteString.ByteStrings
A ByteString with 2 or more fragments.
|
static class |
ByteString.ByteStrings$ |
static interface |
ByteString.Companion |
static class |
ByteString.Companion$ |
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>
Constructor and Description |
---|
ByteString() |
Modifier and Type | Method and Description |
---|---|
static <B> B |
$colon$bslash(B z,
scala.Function2<A,B,B> op) |
static <B,That> That |
$colon$plus(B elem,
scala.collection.generic.CanBuildFrom<Repr,B,That> bf) |
static <B> B |
$div$colon(B z,
scala.Function2<B,A,B> op) |
static <B,That> That |
$plus$colon(B elem,
scala.collection.generic.CanBuildFrom<Repr,B,That> bf) |
static <B,That> That |
$plus$plus(scala.collection.GenTraversableOnce<B> that,
scala.collection.generic.CanBuildFrom<Repr,B,That> bf) |
static <B,That> That |
$plus$plus$colon(scala.collection.Traversable<B> that,
scala.collection.generic.CanBuildFrom<Repr,B,That> bf) |
static <B,That> That |
$plus$plus$colon(scala.collection.TraversableOnce<B> that,
scala.collection.generic.CanBuildFrom<Repr,B,That> bf) |
static scala.collection.mutable.StringBuilder |
addString(scala.collection.mutable.StringBuilder b) |
static scala.collection.mutable.StringBuilder |
addString(scala.collection.mutable.StringBuilder b,
java.lang.String sep) |
static scala.collection.mutable.StringBuilder |
addString(scala.collection.mutable.StringBuilder b,
java.lang.String start,
java.lang.String sep,
java.lang.String end) |
static <B> B |
aggregate(scala.Function0<B> z,
scala.Function2<B,A,B> seqop,
scala.Function2<B,B,B> combop) |
static <C> scala.PartialFunction<A,C> |
andThen(scala.Function1<B,C> k) |
abstract byte |
apply(int idx) |
static double |
apply$mcDD$sp(double v1) |
static double |
apply$mcDF$sp(float v1) |
static double |
apply$mcDI$sp(int v1) |
static double |
apply$mcDJ$sp(long v1) |
static float |
apply$mcFD$sp(double v1) |
static float |
apply$mcFF$sp(float v1) |
static float |
apply$mcFI$sp(int v1) |
static float |
apply$mcFJ$sp(long v1) |
static int |
apply$mcID$sp(double v1) |
static int |
apply$mcIF$sp(float v1) |
static int |
apply$mcII$sp(int v1) |
static int |
apply$mcIJ$sp(long v1) |
static long |
apply$mcJD$sp(double v1) |
static long |
apply$mcJF$sp(float v1) |
static long |
apply$mcJI$sp(int v1) |
static long |
apply$mcJJ$sp(long v1) |
static void |
apply$mcVD$sp(double v1) |
static void |
apply$mcVF$sp(float v1) |
static void |
apply$mcVI$sp(int v1) |
static void |
apply$mcVJ$sp(long v1) |
static boolean |
apply$mcZD$sp(double v1) |
static boolean |
apply$mcZF$sp(float v1) |
static boolean |
apply$mcZI$sp(int v1) |
static boolean |
apply$mcZJ$sp(long v1) |
static <A1 extends A,B1> |
applyOrElse(A1 x,
scala.Function1<A1,B1> default_) |
abstract java.nio.ByteBuffer |
asByteBuffer()
Returns a read-only ByteBuffer that directly wraps this ByteString
if it is not fragmented.
|
abstract 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.
|
abstract ByteString.Companion |
byteStringCompanion() |
static scala.collection.generic.CanBuildFrom<scala.collection.TraversableOnce<java.lang.Object>,java.lang.Object,ByteString> |
canBuildFrom() |
static boolean |
canEqual(java.lang.Object that) |
static <B,That> That |
collect(scala.PartialFunction<A,B> pf,
scala.collection.generic.CanBuildFrom<Repr,B,That> bf) |
static <B> scala.Option<B> |
collectFirst(scala.PartialFunction<A,B> pf) |
static scala.collection.Iterator<Repr> |
combinations(int n) |
abstract CompactByteString |
compact()
Create a new ByteString with all contents compacted into a single,
full byte array.
|
static scala.collection.generic.GenericCompanion<scala.collection.immutable.IndexedSeq> |
companion() |
static <A> scala.Function1<A,R> |
compose(scala.Function1<A,T1> g) |
ByteString |
concat(ByteString that)
Java API: efficiently concatenate another ByteString.
|
static <A1> boolean |
contains(A1 elem) |
static <B> boolean |
containsSlice(scala.collection.GenSeq<B> that) |
<B> void |
copyToArray(java.lang.Object xs,
int start,
int len) |
int |
copyToBuffer(java.nio.ByteBuffer buffer)
Copy as many bytes as possible to a ByteBuffer, starting from it's
current position.
|
static <B> boolean |
corresponds(scala.collection.GenSeq<B> that,
scala.Function2<A,B,java.lang.Object> p) |
static int |
count(scala.Function1<A,java.lang.Object> p) |
static ByteStringBuilder |
createBuilder()
Java API
|
abstract java.lang.String |
decodeString(java.nio.charset.Charset charset)
Decodes this ByteString using a charset to produce a String.
|
abstract java.lang.String |
decodeString(java.lang.String charset)
Decodes this ByteString using a charset to produce a String.
|
static <B> Repr |
diff(scala.collection.GenSeq<B> that) |
static Repr |
distinct() |
ByteString |
drop(int n) |
ByteString |
dropRight(int n) |
ByteString |
dropWhile(scala.Function1<java.lang.Object,java.lang.Object> p) |
static ByteString |
empty() |
static <B> boolean |
endsWith(scala.collection.GenSeq<B> that) |
static boolean |
equals(java.lang.Object that) |
static boolean |
exists(scala.Function1<A,java.lang.Object> p) |
static Repr |
filter(scala.Function1<A,java.lang.Object> p) |
static Repr |
filterImpl(scala.Function1<A,java.lang.Object> p,
boolean isFlipped) |
static Repr |
filterNot(scala.Function1<A,java.lang.Object> p) |
static scala.Option<A> |
find(scala.Function1<A,java.lang.Object> p) |
static <B,That> That |
flatMap(scala.Function1<A,scala.collection.GenTraversableOnce<B>> f,
scala.collection.generic.CanBuildFrom<Repr,B,That> bf) |
static <B> CC |
flatten(scala.Function1<A,scala.collection.GenTraversableOnce<B>> asTraversable) |
static <A1> A1 |
fold(A1 z,
scala.Function2<A1,A1,A1> op) |
static <B> B |
foldLeft(B z,
scala.Function2<B,A,B> op) |
static <B> B |
foldRight(B z,
scala.Function2<A,B,B> op) |
static boolean |
forall(scala.Function1<A,java.lang.Object> p) |
<U> void |
foreach(scala.Function1<java.lang.Object,U> f) |
static ByteString |
fromArray(byte[] array)
Creates a new ByteString by copying a byte array.
|
static ByteString |
fromArray(byte[] array,
int offset,
int length)
Creates a new ByteString by copying length bytes starting at offset from
an Array.
|
static ByteString |
fromByteBuffer(java.nio.ByteBuffer buffer)
Creates a new ByteString by copying bytes out of a ByteBuffer.
|
static ByteString |
fromInts(int... array)
JAVA API
Creates a new ByteString by copying an int array by converting from integral numbers to bytes.
|
static ByteString |
fromInts(scala.collection.Seq<java.lang.Object> array)
JAVA API
Creates a new ByteString by copying an int array by converting from integral numbers to bytes.
|
static ByteString |
fromString(java.lang.String string)
Creates a new ByteString which will contain the UTF-8 representation of the given String
|
static ByteString |
fromString(java.lang.String string,
java.lang.String charset)
Creates a new ByteString which will contain the representation of the given String in the given charset
|
static <B> scala.collection.mutable.Builder<B,CC> |
genericBuilder() |
java.lang.Iterable<java.nio.ByteBuffer> |
getByteBuffers()
Java API: Returns an Iterable of read-only ByteBuffers that directly wraps this ByteStrings
all fragments.
|
static <K> scala.collection.immutable.Map<K,Repr> |
groupBy(scala.Function1<A,K> f) |
static scala.collection.Iterator<Repr> |
grouped(int size) |
static boolean |
hasDefiniteSize() |
static int |
hashCode() |
byte |
head() |
static scala.Option<A> |
headOption() |
<B> int |
indexOf(B elem) |
static <B> int |
indexOfSlice(scala.collection.GenSeq<B> that) |
static <B> int |
indexOfSlice(scala.collection.GenSeq<B> that,
int from) |
int |
indexWhere(scala.Function1<java.lang.Object,java.lang.Object> p) |
static scala.collection.immutable.Range |
indices() |
ByteString |
init() |
static scala.collection.Iterator<Repr> |
inits() |
static <B> Repr |
intersect(scala.collection.GenSeq<B> that) |
abstract boolean |
isCompact()
Check whether this ByteString is compact in memory.
|
abstract static boolean |
isDefinedAt(A x) |
abstract static boolean |
isEmpty() |
static boolean |
isTraversableAgain() |
ByteIterator |
iterator() |
byte |
last() |
static <B> int |
lastIndexOf(B elem) |
static <B> int |
lastIndexOf(B elem,
int end) |
static <B> int |
lastIndexOfSlice(scala.collection.GenSeq<B> that) |
static <B> int |
lastIndexOfSlice(scala.collection.GenSeq<B> that,
int end) |
static int |
lastIndexWhere(scala.Function1<A,java.lang.Object> p) |
static int |
lastIndexWhere(scala.Function1<A,java.lang.Object> p,
int end) |
static scala.Option<A> |
lastOption() |
abstract static int |
length() |
static int |
lengthCompare(int len) |
static scala.Function1<A,scala.Option<B>> |
lift() |
static <B,That> That |
map(scala.Function1<A,B> f,
scala.collection.generic.CanBuildFrom<Repr,B,That> bf) |
ByteString |
mapI(scala.Function1<java.lang.Object,java.lang.Object> f)
map method that will automatically cast Int back into Byte.
|
static <B> A |
max(scala.math.Ordering<B> cmp) |
static <B> A |
maxBy(scala.Function1<A,B> f,
scala.math.Ordering<B> cmp) |
static <B> A |
min(scala.math.Ordering<B> cmp) |
static <B> A |
minBy(scala.Function1<A,B> f,
scala.math.Ordering<B> cmp) |
static java.lang.String |
mkString() |
static java.lang.String |
mkString(java.lang.String sep) |
static java.lang.String |
mkString(java.lang.String start,
java.lang.String sep,
java.lang.String end) |
protected ByteStringBuilder |
newBuilder() |
static boolean |
nonEmpty() |
static <A1 extends A,B1> |
orElse(scala.PartialFunction<A1,B1> that) |
static <B,That> That |
padTo(int len,
B elem,
scala.collection.generic.CanBuildFrom<Repr,B,That> bf) |
static ParRepr |
par() |
protected static scala.collection.parallel.Combiner<A,scala.collection.parallel.immutable.ParSeq<A>> |
parCombiner() |
static scala.Tuple2<Repr,Repr> |
partition(scala.Function1<A,java.lang.Object> p) |
static <B,That> That |
patch(int from,
scala.collection.GenSeq<B> patch,
int replaced,
scala.collection.generic.CanBuildFrom<Repr,B,That> bf) |
static scala.collection.Iterator<Repr> |
permutations() |
static int |
prefixLength(scala.Function1<A,java.lang.Object> p) |
static <B> B |
product(scala.math.Numeric<B> num) |
static <A1> A1 |
reduce(scala.Function2<A1,A1,A1> op) |
static <B> B |
reduceLeft(scala.Function2<B,A,B> op) |
static <B> scala.Option<B> |
reduceLeftOption(scala.Function2<B,A,B> op) |
static <A1> scala.Option<A1> |
reduceOption(scala.Function2<A1,A1,A1> op) |
static <B> B |
reduceRight(scala.Function2<A,B,B> op) |
static <B> scala.Option<B> |
reduceRightOption(scala.Function2<A,B,B> op) |
static Repr |
repr() |
static Repr |
reverse() |
protected static scala.collection.immutable.List<A> |
reversed() |
static scala.collection.Iterator<A> |
reverseIterator() |
static <B,That> That |
reverseMap(scala.Function1<A,B> f,
scala.collection.generic.CanBuildFrom<Repr,B,That> bf) |
static <U> scala.Function1<A,java.lang.Object> |
runWith(scala.Function1<B,U> action) |
static <B> boolean |
sameElements(scala.collection.GenIterable<B> that) |
static <B,That> That |
scan(B z,
scala.Function2<B,B,B> op,
scala.collection.generic.CanBuildFrom<Repr,B,That> cbf) |
static <B,That> That |
scanLeft(B z,
scala.Function2<B,A,B> op,
scala.collection.generic.CanBuildFrom<Repr,B,That> bf) |
static <B,That> That |
scanRight(B z,
scala.Function2<A,B,B> op,
scala.collection.generic.CanBuildFrom<Repr,B,That> bf) |
static int |
segmentLength(scala.Function1<A,java.lang.Object> p,
int from) |
static scala.collection.immutable.IndexedSeq<A> |
seq() |
static int |
size() |
protected static int |
sizeHintIfCheap() |
ByteString |
slice(int from,
int until) |
static Repr |
sliceWithKnownBound(int from,
int until) |
static Repr |
sliceWithKnownDelta(int from,
int until,
int delta) |
static scala.collection.Iterator<Repr> |
sliding(int size) |
static scala.collection.Iterator<Repr> |
sliding(int size,
int step) |
static <B> Repr |
sortBy(scala.Function1<A,B> f,
scala.math.Ordering<B> ord) |
static <B> Repr |
sorted(scala.math.Ordering<B> ord) |
static Repr |
sortWith(scala.Function2<A,A,java.lang.Object> lt) |
scala.Tuple2<ByteString,ByteString> |
span(scala.Function1<java.lang.Object,java.lang.Object> p) |
scala.Tuple2<ByteString,ByteString> |
splitAt(int n) |
static <B> boolean |
startsWith(scala.collection.GenSeq<B> that) |
static <B> boolean |
startsWith(scala.collection.GenSeq<B> that,
int offset) |
java.lang.String |
stringPrefix() |
static <B> B |
sum(scala.math.Numeric<B> num) |
ByteString |
tail() |
static scala.collection.Iterator<Repr> |
tails() |
ByteString |
take(int n) |
ByteString |
takeRight(int n) |
ByteString |
takeWhile(scala.Function1<java.lang.Object,java.lang.Object> p) |
protected static scala.collection.IndexedSeq<A> |
thisCollection() |
static <Col> Col |
to(scala.collection.generic.CanBuildFrom<scala.runtime.Nothing$,A,Col> cbf) |
protected byte[] |
toArray()
Java API: copy this ByteString into a fresh byte array
|
<B> java.lang.Object |
toArray(scala.reflect.ClassTag<B> arg0) |
static <A1> scala.collection.mutable.Buffer<A1> |
toBuffer() |
java.nio.ByteBuffer |
toByteBuffer()
Creates a new ByteBuffer with a copy of all bytes contained in this
ByteString.
|
protected static scala.collection.IndexedSeq<A> |
toCollection(Repr repr) |
static scala.collection.immutable.IndexedSeq<A> |
toIndexedSeq() |
static scala.collection.Iterable<A> |
toIterable() |
static scala.collection.Iterator<A> |
toIterator() |
static scala.collection.immutable.List<A> |
toList() |
static <T,U> scala.collection.immutable.Map<T,U> |
toMap(scala.Predef.$less$colon$less<A,scala.Tuple2<T,U>> ev) |
static scala.collection.immutable.Seq<A> |
toSeq() |
static <B> scala.collection.immutable.Set<B> |
toSet() |
static scala.collection.immutable.Stream<A> |
toStream() |
java.lang.String |
toString() |
static scala.collection.Traversable<A> |
toTraversable() |
static scala.collection.immutable.Vector<A> |
toVector() |
static <B> CC |
transpose(scala.Function1<A,scala.collection.GenTraversableOnce<B>> asTraversable) |
static <B,That> That |
union(scala.collection.GenSeq<B> that,
scala.collection.generic.CanBuildFrom<Repr,B,That> bf) |
static <A1,A2> scala.Tuple2<CC,CC> |
unzip(scala.Function1<A,scala.Tuple2<A1,A2>> asPair) |
static <A1,A2,A3> scala.Tuple3<CC,CC,CC> |
unzip3(scala.Function1<A,scala.Tuple3<A1,A2,A3>> asTriple) |
static <B,That> That |
updated(int index,
B elem,
scala.collection.generic.CanBuildFrom<Repr,B,That> bf) |
static java.lang.String |
UTF_8()
Standard "UTF-8" charset
|
java.lang.String |
utf8String()
Decodes this ByteString as a UTF-8 encoded String.
|
static java.lang.Object |
view() |
static scala.collection.SeqView<A,Repr> |
view(int from,
int until) |
static scala.collection.generic.FilterMonadic<A,Repr> |
withFilter(scala.Function1<A,java.lang.Object> p) |
abstract void |
writeToOutputStream(java.io.ObjectOutputStream os) |
static <A1,B,That> |
zip(scala.collection.GenIterable<B> that,
scala.collection.generic.CanBuildFrom<Repr,scala.Tuple2<A1,B>,That> bf) |
static <B,A1,That> |
zipAll(scala.collection.GenIterable<B> that,
A1 thisElem,
B thatElem,
scala.collection.generic.CanBuildFrom<Repr,scala.Tuple2<A1,B>,That> bf) |
static <A1,That> That |
zipWithIndex(scala.collection.generic.CanBuildFrom<Repr,scala.Tuple2<A1,java.lang.Object>,That> bf) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
$init$, companion, concat, fill, fill, fill, fill, fill, iterate, range, range, ReusableCBF, seq, tabulate, tabulate, tabulate, tabulate, tabulate, toIndexedSeq, unapplySeq
$init$, andThen, applyOrElse, cond, condOpt, isDefinedAt, lift, orElse, runWith
$init$, 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
$init$, apply, concat, fill, fill, fill, fill, fill, iterate, range, range, tabulate, tabulate, tabulate, tabulate, tabulate
$init$, flatten, genericBuilder, isEmpty, transpose, unzip, unzip3
$init$, hashCode, sizeHintIfCheap, thisCollection, toBuffer, toCollection
$colon$plus, $init$, $plus$colon, combinations, contains, containsSlice, corresponds, diff, distinct, endsWith, indexOfSlice, indexOfSlice, indexWhere, indices, intersect, isEmpty, lastIndexOfSlice, lastIndexOfSlice, lastIndexWhere, length, lengthCompare, padTo, patch, permutations, reverse, reverseIterator, reverseMap, segmentLength, size, sortBy, sorted, sortWith, startsWith, union, updated, view, view
$init$, canEqual, exists, find, foldRight, forall, grouped, reduceRight, sameElements, sliding, sliding, toIterable, toIterator, toStream, zip, zipAll, zipWithIndex
$init$, $plus$plus, $plus$plus$colon, $plus$plus$colon, collect, filter, filterImpl, filterNot, flatMap, groupBy, hasDefiniteSize, headOption, inits, isTraversableAgain, lastOption, map, partition, repr, scan, scanLeft, scanRight, sliceWithKnownBound, sliceWithKnownDelta, tails, to, toTraversable, withFilter
$colon$bslash, $div$colon, $init$, addString, addString, addString, aggregate, alternateImplicit, collectFirst, copyToArray, copyToArray, copyToBuffer, count, flattenTraversableOnce, fold, foldLeft, max, maxBy, min, minBy, mkString, mkString, mkString, MonadOps, nonEmpty, OnceCanBuildFrom, product, reduce, reduceLeft, reduceLeftOption, reduceOption, reduceRightOption, reversed, sum, toList, toMap, toSet, toVector
public static ByteString fromInts(int... array)
array
- (undocumented)public static ByteString fromArray(byte[] array)
array
- (undocumented)public static ByteString fromArray(byte[] array, int offset, int length)
array
- (undocumented)offset
- (undocumented)length
- (undocumented)public static ByteString fromInts(scala.collection.Seq<java.lang.Object> array)
array
- (undocumented)public static ByteString fromString(java.lang.String string)
string
- (undocumented)public static ByteString fromString(java.lang.String string, java.lang.String charset)
string
- (undocumented)charset
- (undocumented)public static java.lang.String UTF_8()
public static ByteString fromByteBuffer(java.nio.ByteBuffer buffer)
buffer
- (undocumented)public static ByteString empty()
empty
in interface scala.collection.GenIterable<java.lang.Object>
empty
in interface scala.collection.GenSeq<java.lang.Object>
empty
in interface scala.collection.GenTraversable<java.lang.Object>
empty
in interface scala.collection.IndexedSeq<java.lang.Object>
empty
in interface scala.collection.Iterable<java.lang.Object>
empty
in interface scala.collection.Seq<java.lang.Object>
empty
in interface scala.collection.Traversable<java.lang.Object>
empty
in interface scala.PartialFunction<java.lang.Object,java.lang.Object>
public static ByteStringBuilder createBuilder()
public static scala.collection.generic.CanBuildFrom<scala.collection.TraversableOnce<java.lang.Object>,java.lang.Object,ByteString> canBuildFrom()
canBuildFrom
in interface scala.collection.GenIterable<java.lang.Object>
canBuildFrom
in interface scala.collection.GenSeq<java.lang.Object>
canBuildFrom
in interface scala.collection.GenTraversable<java.lang.Object>
canBuildFrom
in interface scala.collection.IndexedSeq<java.lang.Object>
canBuildFrom
in interface scala.collection.Iterable<java.lang.Object>
canBuildFrom
in interface scala.collection.Seq<java.lang.Object>
canBuildFrom
in interface scala.collection.Traversable<java.lang.Object>
protected static scala.collection.immutable.List<A> reversed()
public static boolean nonEmpty()
public static int count(scala.Function1<A,java.lang.Object> p)
public static <B> scala.Option<B> collectFirst(scala.PartialFunction<A,B> pf)
public static <B> B $div$colon(B z, scala.Function2<B,A,B> op)
public static <B> B $colon$bslash(B z, scala.Function2<A,B,B> op)
public static <B> scala.Option<B> reduceLeftOption(scala.Function2<B,A,B> op)
public static <B> scala.Option<B> reduceRightOption(scala.Function2<A,B,B> op)
public static <A1> A1 reduce(scala.Function2<A1,A1,A1> op)
public static <A1> scala.Option<A1> reduceOption(scala.Function2<A1,A1,A1> op)
public static <A1> A1 fold(A1 z, scala.Function2<A1,A1,A1> op)
public static <B> B aggregate(scala.Function0<B> z, scala.Function2<B,A,B> seqop, scala.Function2<B,B,B> combop)
public static <B> B sum(scala.math.Numeric<B> num)
public static <B> B product(scala.math.Numeric<B> num)
public static <B> A min(scala.math.Ordering<B> cmp)
public static <B> A max(scala.math.Ordering<B> cmp)
public static <B> A maxBy(scala.Function1<A,B> f, scala.math.Ordering<B> cmp)
public static <B> A minBy(scala.Function1<A,B> f, scala.math.Ordering<B> cmp)
public static scala.collection.immutable.List<A> toList()
public static <B> scala.collection.immutable.Set<B> toSet()
public static scala.collection.immutable.Vector<A> toVector()
public static <T,U> scala.collection.immutable.Map<T,U> toMap(scala.Predef.$less$colon$less<A,scala.Tuple2<T,U>> ev)
public static java.lang.String mkString(java.lang.String start, java.lang.String sep, java.lang.String end)
public static java.lang.String mkString(java.lang.String sep)
public static java.lang.String mkString()
public static scala.collection.mutable.StringBuilder addString(scala.collection.mutable.StringBuilder b, java.lang.String start, java.lang.String sep, java.lang.String end)
public static scala.collection.mutable.StringBuilder addString(scala.collection.mutable.StringBuilder b, java.lang.String sep)
public static scala.collection.mutable.StringBuilder addString(scala.collection.mutable.StringBuilder b)
public static ParRepr par()
public static Repr repr()
public static final boolean isTraversableAgain()
public static boolean hasDefiniteSize()
public static <B,That> That $plus$plus(scala.collection.GenTraversableOnce<B> that, scala.collection.generic.CanBuildFrom<Repr,B,That> bf)
public static <B,That> That $plus$plus$colon(scala.collection.TraversableOnce<B> that, scala.collection.generic.CanBuildFrom<Repr,B,That> bf)
public static <B,That> That $plus$plus$colon(scala.collection.Traversable<B> that, scala.collection.generic.CanBuildFrom<Repr,B,That> bf)
public static <B,That> That map(scala.Function1<A,B> f, scala.collection.generic.CanBuildFrom<Repr,B,That> bf)
public static <B,That> That flatMap(scala.Function1<A,scala.collection.GenTraversableOnce<B>> f, scala.collection.generic.CanBuildFrom<Repr,B,That> bf)
public static Repr filterImpl(scala.Function1<A,java.lang.Object> p, boolean isFlipped)
public static Repr filter(scala.Function1<A,java.lang.Object> p)
public static Repr filterNot(scala.Function1<A,java.lang.Object> p)
public static <B,That> That collect(scala.PartialFunction<A,B> pf, scala.collection.generic.CanBuildFrom<Repr,B,That> bf)
public static scala.Tuple2<Repr,Repr> partition(scala.Function1<A,java.lang.Object> p)
public static <K> scala.collection.immutable.Map<K,Repr> groupBy(scala.Function1<A,K> f)
public static <B,That> That scan(B z, scala.Function2<B,B,B> op, scala.collection.generic.CanBuildFrom<Repr,B,That> cbf)
public static <B,That> That scanLeft(B z, scala.Function2<B,A,B> op, scala.collection.generic.CanBuildFrom<Repr,B,That> bf)
public static <B,That> That scanRight(B z, scala.Function2<A,B,B> op, scala.collection.generic.CanBuildFrom<Repr,B,That> bf)
public static scala.Option<A> headOption()
public static scala.Option<A> lastOption()
public static Repr sliceWithKnownDelta(int from, int until, int delta)
public static Repr sliceWithKnownBound(int from, int until)
public static scala.collection.Iterator<Repr> tails()
public static scala.collection.Iterator<Repr> inits()
public static scala.collection.Traversable<A> toTraversable()
public static <Col> Col to(scala.collection.generic.CanBuildFrom<scala.runtime.Nothing$,A,Col> cbf)
public static scala.collection.generic.FilterMonadic<A,Repr> withFilter(scala.Function1<A,java.lang.Object> p)
public abstract static boolean isEmpty()
public static <B> scala.collection.mutable.Builder<B,CC> genericBuilder()
public static <A1,A2> scala.Tuple2<CC,CC> unzip(scala.Function1<A,scala.Tuple2<A1,A2>> asPair)
public static <A1,A2,A3> scala.Tuple3<CC,CC,CC> unzip3(scala.Function1<A,scala.Tuple3<A1,A2,A3>> asTriple)
public static <B> CC flatten(scala.Function1<A,scala.collection.GenTraversableOnce<B>> asTraversable)
public static <B> CC transpose(scala.Function1<A,scala.collection.GenTraversableOnce<B>> asTraversable)
public static scala.collection.Iterable<A> toIterable()
public static scala.collection.Iterator<A> toIterator()
public static scala.collection.Iterator<Repr> grouped(int size)
public static scala.collection.Iterator<Repr> sliding(int size)
public static scala.collection.Iterator<Repr> sliding(int size, int step)
public static <B,A1,That> That zipAll(scala.collection.GenIterable<B> that, A1 thisElem, B thatElem, scala.collection.generic.CanBuildFrom<Repr,scala.Tuple2<A1,B>,That> bf)
public static scala.collection.immutable.Stream<A> toStream()
public static boolean canEqual(java.lang.Object that)
public static boolean apply$mcZD$sp(double v1)
public static double apply$mcDD$sp(double v1)
public static float apply$mcFD$sp(double v1)
public static int apply$mcID$sp(double v1)
public static long apply$mcJD$sp(double v1)
public static void apply$mcVD$sp(double v1)
public static boolean apply$mcZF$sp(float v1)
public static double apply$mcDF$sp(float v1)
public static float apply$mcFF$sp(float v1)
public static int apply$mcIF$sp(float v1)
public static long apply$mcJF$sp(float v1)
public static void apply$mcVF$sp(float v1)
public static boolean apply$mcZI$sp(int v1)
public static double apply$mcDI$sp(int v1)
public static float apply$mcFI$sp(int v1)
public static int apply$mcII$sp(int v1)
public static long apply$mcJI$sp(int v1)
public static void apply$mcVI$sp(int v1)
public static boolean apply$mcZJ$sp(long v1)
public static double apply$mcDJ$sp(long v1)
public static float apply$mcFJ$sp(long v1)
public static int apply$mcIJ$sp(long v1)
public static long apply$mcJJ$sp(long v1)
public static void apply$mcVJ$sp(long v1)
public static <A> scala.Function1<A,R> compose(scala.Function1<A,T1> g)
public abstract static boolean isDefinedAt(A x)
public static <A1 extends A,B1> scala.PartialFunction<A1,B1> orElse(scala.PartialFunction<A1,B1> that)
public static <C> scala.PartialFunction<A,C> andThen(scala.Function1<B,C> k)
public static scala.Function1<A,scala.Option<B>> lift()
public static <A1 extends A,B1> B1 applyOrElse(A1 x, scala.Function1<A1,B1> default_)
public static <U> scala.Function1<A,java.lang.Object> runWith(scala.Function1<B,U> action)
public static int prefixLength(scala.Function1<A,java.lang.Object> p)
public static <B> int lastIndexOf(B elem)
public static <B> int lastIndexOf(B elem, int end)
public static int lastIndexWhere(scala.Function1<A,java.lang.Object> p)
public static <B> boolean startsWith(scala.collection.GenSeq<B> that)
public static boolean equals(java.lang.Object that)
public abstract static int length()
public static int size()
public static scala.collection.Iterator<Repr> permutations()
public static scala.collection.Iterator<Repr> combinations(int n)
public static <B,That> That reverseMap(scala.Function1<A,B> f, scala.collection.generic.CanBuildFrom<Repr,B,That> bf)
public static <B> int indexOfSlice(scala.collection.GenSeq<B> that)
public static <B> int indexOfSlice(scala.collection.GenSeq<B> that, int from)
public static <B> int lastIndexOfSlice(scala.collection.GenSeq<B> that)
public static <B> int lastIndexOfSlice(scala.collection.GenSeq<B> that, int end)
public static <B> boolean containsSlice(scala.collection.GenSeq<B> that)
public static <A1> boolean contains(A1 elem)
public static <B,That> That union(scala.collection.GenSeq<B> that, scala.collection.generic.CanBuildFrom<Repr,B,That> bf)
public static <B> Repr diff(scala.collection.GenSeq<B> that)
public static <B> Repr intersect(scala.collection.GenSeq<B> that)
public static Repr distinct()
public static <B,That> That patch(int from, scala.collection.GenSeq<B> patch, int replaced, scala.collection.generic.CanBuildFrom<Repr,B,That> bf)
public static <B,That> That updated(int index, B elem, scala.collection.generic.CanBuildFrom<Repr,B,That> bf)
public static <B,That> That $plus$colon(B elem, scala.collection.generic.CanBuildFrom<Repr,B,That> bf)
public static <B,That> That $colon$plus(B elem, scala.collection.generic.CanBuildFrom<Repr,B,That> bf)
public static <B,That> That padTo(int len, B elem, scala.collection.generic.CanBuildFrom<Repr,B,That> bf)
public static <B> boolean corresponds(scala.collection.GenSeq<B> that, scala.Function2<A,B,java.lang.Object> p)
public static Repr sortWith(scala.Function2<A,A,java.lang.Object> lt)
public static <B> Repr sortBy(scala.Function1<A,B> f, scala.math.Ordering<B> ord)
public static <B> Repr sorted(scala.math.Ordering<B> ord)
public static scala.collection.immutable.Range indices()
public static java.lang.Object view()
public static scala.collection.SeqView<A,Repr> view(int from, int until)
public static scala.collection.immutable.Seq<A> toSeq()
protected static scala.collection.parallel.Combiner<A,scala.collection.parallel.immutable.ParSeq<A>> parCombiner()
public static int hashCode()
protected static scala.collection.IndexedSeq<A> thisCollection()
protected static scala.collection.IndexedSeq<A> toCollection(Repr repr)
public static <A1> scala.collection.mutable.Buffer<A1> toBuffer()
protected static int sizeHintIfCheap()
public static scala.collection.generic.GenericCompanion<scala.collection.immutable.IndexedSeq> companion()
public static scala.collection.immutable.IndexedSeq<A> toIndexedSeq()
public static scala.collection.immutable.IndexedSeq<A> seq()
public static boolean forall(scala.Function1<A,java.lang.Object> p)
public static boolean exists(scala.Function1<A,java.lang.Object> p)
public static scala.Option<A> find(scala.Function1<A,java.lang.Object> p)
public static <B> B foldLeft(B z, scala.Function2<B,A,B> op)
public static <B> B foldRight(B z, scala.Function2<A,B,B> op)
public static <B> B reduceLeft(scala.Function2<B,A,B> op)
public static <B> B reduceRight(scala.Function2<A,B,B> op)
public static <A1,B,That> That zip(scala.collection.GenIterable<B> that, scala.collection.generic.CanBuildFrom<Repr,scala.Tuple2<A1,B>,That> bf)
public static <A1,That> That zipWithIndex(scala.collection.generic.CanBuildFrom<Repr,scala.Tuple2<A1,java.lang.Object>,That> bf)
public static <B> boolean sameElements(scala.collection.GenIterable<B> that)
public static int lengthCompare(int len)
public static int segmentLength(scala.Function1<A,java.lang.Object> p, int from)
public static int lastIndexWhere(scala.Function1<A,java.lang.Object> p, int end)
public static Repr reverse()
public static scala.collection.Iterator<A> reverseIterator()
public static <B> boolean startsWith(scala.collection.GenSeq<B> that, int offset)
public static <B> boolean endsWith(scala.collection.GenSeq<B> that)
public abstract byte apply(int idx)
apply
in interface scala.collection.GenSeqLike<java.lang.Object,ByteString>
apply
in interface scala.collection.SeqLike<java.lang.Object,ByteString>
public abstract ByteString.Companion byteStringCompanion()
public final java.lang.String stringPrefix()
stringPrefix
in interface scala.collection.GenTraversableLike<java.lang.Object,ByteString>
stringPrefix
in interface scala.collection.TraversableLike<java.lang.Object,ByteString>
protected ByteStringBuilder newBuilder()
newBuilder
in interface scala.collection.generic.GenericTraversableTemplate<java.lang.Object,scala.collection.GenTraversable>
newBuilder
in interface scala.collection.generic.HasNewBuilder<java.lang.Object,ByteString>
newBuilder
in interface scala.collection.TraversableLike<java.lang.Object,ByteString>
public ByteIterator 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>
public byte head()
head
in interface scala.collection.generic.GenericTraversableTemplate<java.lang.Object,scala.collection.GenTraversable>
head
in interface scala.collection.GenTraversableLike<java.lang.Object,ByteString>
head
in interface scala.collection.IndexedSeqOptimized<java.lang.Object,ByteString>
head
in interface scala.collection.IterableLike<java.lang.Object,ByteString>
head
in interface scala.collection.TraversableLike<java.lang.Object,ByteString>
public ByteString tail()
tail
in interface scala.collection.GenTraversableLike<java.lang.Object,ByteString>
tail
in interface scala.collection.IndexedSeqOptimized<java.lang.Object,ByteString>
tail
in interface scala.collection.TraversableLike<java.lang.Object,ByteString>
public byte last()
last
in interface scala.collection.GenTraversableLike<java.lang.Object,ByteString>
last
in interface scala.collection.IndexedSeqOptimized<java.lang.Object,ByteString>
last
in interface scala.collection.TraversableLike<java.lang.Object,ByteString>
public ByteString init()
init
in interface scala.collection.GenTraversableLike<java.lang.Object,ByteString>
init
in interface scala.collection.IndexedSeqOptimized<java.lang.Object,ByteString>
init
in interface scala.collection.TraversableLike<java.lang.Object,ByteString>
public ByteString take(int n)
take
in interface scala.collection.GenTraversableLike<java.lang.Object,ByteString>
take
in interface scala.collection.IndexedSeqOptimized<java.lang.Object,ByteString>
take
in interface scala.collection.IterableLike<java.lang.Object,ByteString>
take
in interface scala.collection.TraversableLike<java.lang.Object,ByteString>
public ByteString takeRight(int n)
takeRight
in interface scala.collection.IndexedSeqOptimized<java.lang.Object,ByteString>
takeRight
in interface scala.collection.IterableLike<java.lang.Object,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>
public ByteString drop(int n)
drop
in interface scala.collection.GenTraversableLike<java.lang.Object,ByteString>
drop
in interface scala.collection.IndexedSeqOptimized<java.lang.Object,ByteString>
drop
in interface scala.collection.IterableLike<java.lang.Object,ByteString>
drop
in interface scala.collection.TraversableLike<java.lang.Object,ByteString>
public ByteString dropRight(int n)
dropRight
in interface scala.collection.IndexedSeqOptimized<java.lang.Object,ByteString>
dropRight
in interface scala.collection.IterableLike<java.lang.Object,ByteString>
public ByteString takeWhile(scala.Function1<java.lang.Object,java.lang.Object> p)
takeWhile
in interface scala.collection.GenTraversableLike<java.lang.Object,ByteString>
takeWhile
in interface scala.collection.IndexedSeqOptimized<java.lang.Object,ByteString>
takeWhile
in interface scala.collection.IterableLike<java.lang.Object,ByteString>
takeWhile
in interface scala.collection.TraversableLike<java.lang.Object,ByteString>
public ByteString dropWhile(scala.Function1<java.lang.Object,java.lang.Object> p)
dropWhile
in interface scala.collection.GenTraversableLike<java.lang.Object,ByteString>
dropWhile
in interface scala.collection.IndexedSeqOptimized<java.lang.Object,ByteString>
dropWhile
in interface scala.collection.TraversableLike<java.lang.Object,ByteString>
public scala.Tuple2<ByteString,ByteString> span(scala.Function1<java.lang.Object,java.lang.Object> p)
span
in interface scala.collection.GenTraversableLike<java.lang.Object,ByteString>
span
in interface scala.collection.IndexedSeqOptimized<java.lang.Object,ByteString>
span
in interface scala.collection.TraversableLike<java.lang.Object,ByteString>
public scala.Tuple2<ByteString,ByteString> splitAt(int n)
splitAt
in interface scala.collection.GenTraversableLike<java.lang.Object,ByteString>
splitAt
in interface scala.collection.IndexedSeqOptimized<java.lang.Object,ByteString>
splitAt
in interface scala.collection.TraversableLike<java.lang.Object,ByteString>
public int indexWhere(scala.Function1<java.lang.Object,java.lang.Object> p)
indexWhere
in interface scala.collection.GenSeqLike<java.lang.Object,ByteString>
public <B> int indexOf(B elem)
indexOf
in interface scala.collection.GenSeqLike<java.lang.Object,ByteString>
public java.lang.String toString()
toString
in interface scala.collection.SeqLike<java.lang.Object,ByteString>
toString
in interface scala.collection.TraversableLike<java.lang.Object,ByteString>
toString
in interface scala.Function1<java.lang.Object,java.lang.Object>
toString
in class java.lang.Object
protected byte[] toArray()
public <B> java.lang.Object toArray(scala.reflect.ClassTag<B> arg0)
toArray
in interface scala.collection.GenTraversableOnce<java.lang.Object>
toArray
in interface scala.collection.TraversableOnce<java.lang.Object>
public <B> void copyToArray(java.lang.Object xs, int start, int len)
copyToArray
in interface scala.collection.GenTraversableOnce<java.lang.Object>
copyToArray
in interface scala.collection.IndexedSeqOptimized<java.lang.Object,ByteString>
copyToArray
in interface scala.collection.IterableLike<java.lang.Object,ByteString>
copyToArray
in interface scala.collection.TraversableLike<java.lang.Object,ByteString>
copyToArray
in interface scala.collection.TraversableOnce<java.lang.Object>
public <U> void foreach(scala.Function1<java.lang.Object,U> f)
foreach
in interface scala.collection.generic.FilterMonadic<java.lang.Object,ByteString>
foreach
in interface scala.collection.generic.GenericTraversableTemplate<java.lang.Object,scala.collection.GenTraversable>
foreach
in interface scala.collection.GenTraversableLike<java.lang.Object,ByteString>
foreach
in interface scala.collection.GenTraversableOnce<java.lang.Object>
foreach
in interface scala.collection.IndexedSeqOptimized<java.lang.Object,ByteString>
foreach
in interface scala.collection.IterableLike<java.lang.Object,ByteString>
foreach
in interface scala.collection.TraversableLike<java.lang.Object,ByteString>
foreach
in interface scala.collection.TraversableOnce<java.lang.Object>
public abstract void writeToOutputStream(java.io.ObjectOutputStream os)
public ByteString concat(ByteString that)
that
- (undocumented)public int copyToBuffer(java.nio.ByteBuffer buffer)
buffer
- a ByteBuffer to copy bytes topublic abstract CompactByteString compact()
public abstract boolean isCompact()
public abstract java.nio.ByteBuffer asByteBuffer()
public abstract scala.collection.immutable.Iterable<java.nio.ByteBuffer> asByteBuffers()
public java.lang.Iterable<java.nio.ByteBuffer> getByteBuffers()
public java.nio.ByteBuffer toByteBuffer()
public final java.lang.String utf8String()
public abstract java.lang.String decodeString(java.lang.String charset)
Charset
instance available, use decodeString(charset: java.nio.charset.Charset
instead.charset
- (undocumented)public abstract java.lang.String decodeString(java.nio.charset.Charset charset)
decodeString(charset: String)
.charset
- (undocumented)public final ByteString mapI(scala.Function1<java.lang.Object,java.lang.Object> f)
f
- (undocumented)