Class EmptyBytes

  • All Implemented Interfaces:
    Bytes

    public final class EmptyBytes
    extends Object
    implements Bytes
    Bytes with no data.

    There is no thread-safety guarantee.

    Since:
    0.2
    • Constructor Detail

      • EmptyBytes

        public EmptyBytes()
    • Method Detail

      • asBytes

        public byte[] asBytes()
        Description copied from interface: Bytes
        Convert it to the byte array.
        Specified by:
        asBytes in interface Bytes
        Returns:
        The byte array