Package akka.util
Class CompactByteString$
- java.lang.Object
-
- akka.util.CompactByteString$
-
- All Implemented Interfaces:
java.io.Serializable
public class CompactByteString$ extends java.lang.Object implements java.io.Serializable
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static CompactByteString$
MODULE$
Static reference to the singleton instance of this Scala object.
-
Constructor Summary
Constructors Constructor Description CompactByteString$()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CompactByteString
apply(byte[] bytes)
Creates a new CompactByteString by copying a byte array.CompactByteString
apply(java.lang.String string)
Creates a new CompactByteString by encoding a String as UTF-8.CompactByteString
apply(java.lang.String string, java.lang.String charset)
Creates a new CompactByteString by encoding a String with a charset.CompactByteString
apply(java.lang.String string, java.nio.charset.Charset charset)
Creates a new CompactByteString by encoding a String with a charset.CompactByteString
apply(java.nio.ByteBuffer bytes)
Creates a new CompactByteString by copying bytes from a ByteBuffer.CompactByteString
apply(scala.collection.immutable.Seq<java.lang.Object> bytes)
Creates a new CompactByteString by copying bytes.<T> CompactByteString
apply(scala.collection.immutable.Seq<T> bytes, scala.math.Integral<T> num)
Creates a new CompactByteString by converting from integral numbers to bytes.CompactByteString
apply(scala.collection.IterableOnce<java.lang.Object> bytes)
Creates a new CompactByteString by traversing bytes.CompactByteString
empty()
CompactByteString
fromArray(byte[] array, int offset, int length)
Creates a new CompactByteString by copying length bytes starting at offset from an Array.
-
-
-
Field Detail
-
MODULE$
public static final CompactByteString$ MODULE$
Static reference to the singleton instance of this Scala object.
-
-
Method Detail
-
apply
public CompactByteString apply(byte[] bytes)
Creates a new CompactByteString by copying a byte array.
-
apply
public CompactByteString apply(scala.collection.immutable.Seq<java.lang.Object> bytes)
Creates a new CompactByteString by copying bytes.
-
apply
public CompactByteString apply(scala.collection.IterableOnce<java.lang.Object> bytes)
Creates a new CompactByteString by traversing bytes.
-
apply
public <T> CompactByteString apply(scala.collection.immutable.Seq<T> bytes, scala.math.Integral<T> num)
Creates a new CompactByteString by converting from integral numbers to bytes.
-
apply
public CompactByteString apply(java.nio.ByteBuffer bytes)
Creates a new CompactByteString by copying bytes from a ByteBuffer.
-
apply
public CompactByteString apply(java.lang.String string)
Creates a new CompactByteString by encoding a String as UTF-8.
-
apply
public CompactByteString apply(java.lang.String string, java.lang.String charset)
Creates a new CompactByteString by encoding a String with a charset.
-
apply
public CompactByteString apply(java.lang.String string, java.nio.charset.Charset charset)
Creates a new CompactByteString by encoding a String with a charset.
-
fromArray
public CompactByteString fromArray(byte[] array, int offset, int length)
Creates a new CompactByteString by copying length bytes starting at offset from an Array.
-
empty
public CompactByteString empty()
-
-