Class Bytes

java.lang.Object
io.datarouter.bytes.Bytes
All Implemented Interfaces:
Comparable<Bytes>

public class Bytes extends Object implements Comparable<Bytes>
  • Field Details

    • EMPTY

      public static final Bytes EMPTY
  • Constructor Details

    • Bytes

      public Bytes(byte[] bytes)
    • Bytes

      public Bytes(byte[] bytes, int offset, int length)
  • Method Details

    • getLength

      public int getLength()
    • toArray

      public byte[] toArray()
    • toOutputStream

      public void toOutputStream(OutputStream outputStream)
    • equals

      public boolean equals(Object thatObject)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • compareTo

      public int compareTo(Bytes other)
      Specified by:
      compareTo in interface Comparable<Bytes>
    • toString

      public String toString()
      Overrides:
      toString in class Object