Package akka.util

Class 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.
    • 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • MODULE$

        public static final CompactByteString$ MODULE$
        Static reference to the singleton instance of this Scala object.
    • Constructor Detail

      • CompactByteString$

        public CompactByteString$()
    • 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.