Package akka.util
Class CompactByteString$
- java.lang.Object
-
- akka.util.CompactByteString$
-
- All Implemented Interfaces:
java.io.Serializable
,scala.Serializable
public class CompactByteString$ extends java.lang.Object implements scala.Serializable
Creates a new CompactByteString by copying a byte array.- 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)
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.Seq<java.lang.Object> bytes)
Creates a new CompactByteString by copying bytes.<T> CompactByteString
apply(scala.collection.Seq<T> bytes, scala.math.Integral<T> num)
Creates a new CompactByteString by converting from integral numbers to 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)
-
apply
public CompactByteString apply(scala.collection.Seq<java.lang.Object> bytes)
Creates a new CompactByteString by copying bytes.- Parameters:
bytes
- (undocumented)- Returns:
- (undocumented)
-
apply
public <T> CompactByteString apply(scala.collection.Seq<T> bytes, scala.math.Integral<T> num)
Creates a new CompactByteString by converting from integral numbers to bytes.- Parameters:
bytes
- (undocumented)num
- (undocumented)- Returns:
- (undocumented)
-
apply
public CompactByteString apply(java.nio.ByteBuffer bytes)
Creates a new CompactByteString by copying bytes from a ByteBuffer.- Parameters:
bytes
- (undocumented)- Returns:
- (undocumented)
-
apply
public CompactByteString apply(java.lang.String string)
Creates a new CompactByteString by encoding a String as UTF-8.- Parameters:
string
- (undocumented)- Returns:
- (undocumented)
-
apply
public CompactByteString apply(java.lang.String string, java.lang.String charset)
Creates a new CompactByteString by encoding a String with a charset.- Parameters:
string
- (undocumented)charset
- (undocumented)- Returns:
- (undocumented)
-
apply
public CompactByteString apply(java.lang.String string, java.nio.charset.Charset charset)
Creates a new CompactByteString by encoding a String with a charset.- Parameters:
string
- (undocumented)charset
- (undocumented)- Returns:
- (undocumented)
-
fromArray
public CompactByteString fromArray(byte[] array, int offset, int length)
Creates a new CompactByteString by copying length bytes starting at offset from an Array.- Parameters:
array
- (undocumented)offset
- (undocumented)length
- (undocumented)- Returns:
- (undocumented)
-
empty
public CompactByteString empty()
-
-