Package akka.util

Class CompactByteString$

  • All Implemented Interfaces:
    java.io.Serializable, scala.Serializable

    public class CompactByteString$
    extends java.lang.Object
    implements scala.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.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.
      • 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.
        Parameters:
        bytes - (undocumented)
        Returns:
        (undocumented)
      • 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)