Class Util.ByteDataIterable

java.lang.Object
io.permazen.kv.xodus.Util.ByteDataIterable
All Implemented Interfaces:
Comparable<jetbrains.exodus.ByteIterable>, jetbrains.exodus.ByteIterable
Enclosing class:
Util

public static class Util.ByteDataIterable extends Object implements jetbrains.exodus.ByteIterable
A ByteIterable view of a ByteData.
  • Constructor Details

    • ByteDataIterable

      public ByteDataIterable(ByteData data)
  • Method Details

    • getBytesUnsafe

      public byte[] getBytesUnsafe()
      Specified by:
      getBytesUnsafe in interface jetbrains.exodus.ByteIterable
    • getLength

      public int getLength()
      Specified by:
      getLength in interface jetbrains.exodus.ByteIterable
    • iterator

      public jetbrains.exodus.ByteIterator iterator()
      Specified by:
      iterator in interface jetbrains.exodus.ByteIterable
    • subIterable

      public jetbrains.exodus.ByteIterable subIterable(int offset, int length)
      Specified by:
      subIterable in interface jetbrains.exodus.ByteIterable
    • compareTo

      public int compareTo(jetbrains.exodus.ByteIterable that)
      Specified by:
      compareTo in interface Comparable<jetbrains.exodus.ByteIterable>
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object