程序包 com.novi.serde

类 Bytes

java.lang.Object
com.novi.serde.Bytes

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

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

  • 构造器详细资料

    • Bytes

      public Bytes(byte[] content)
  • 方法详细资料

    • empty

      public static Bytes empty()
    • valueOf

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

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

      public List<Byte> toList()
    • content

      public byte[] content()
    • equals

      public boolean equals(Object obj)
      覆盖:
      equals 在类中 Object
    • hashCode

      public int hashCode()
      覆盖:
      hashCode 在类中 Object