Class Bytes


  • public final class Bytes
    extends Object
    Immutable wrapper class around byte[].

    Enforces value-semantice for `equals` and `hashCode`.

    • Constructor Detail

      • Bytes

        public Bytes​(byte[] content)
    • Method Detail

      • empty

        public static Bytes empty()
      • valueOf

        public static Bytes valueOf​(byte[] content)
      • fromList

        public static Bytes fromList​(List<Byte> listBytes)
      • content

        public byte[] content()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object