Class SeekingIteratorAdapter.DbEntry

java.lang.Object
org.iq80.leveldb.impl.SeekingIteratorAdapter.DbEntry
All Implemented Interfaces:
Map.Entry<byte[],byte[]>
Enclosing class:
SeekingIteratorAdapter

public static class SeekingIteratorAdapter.DbEntry extends Object implements Map.Entry<byte[],byte[]>
  • Field Details

    • key

      private final Slice key
    • value

      private final Slice value
  • Constructor Details

    • DbEntry

      public DbEntry(Slice key, Slice value)
  • Method Details

    • getKey

      public byte[] getKey()
      Specified by:
      getKey in interface Map.Entry<byte[],byte[]>
    • getKeySlice

      public Slice getKeySlice()
    • getValue

      public byte[] getValue()
      Specified by:
      getValue in interface Map.Entry<byte[],byte[]>
    • getValueSlice

      public Slice getValueSlice()
    • setValue

      public byte[] setValue(byte[] value)
      Specified by:
      setValue in interface Map.Entry<byte[],byte[]>
    • equals

      public boolean equals(Object object)
      Specified by:
      equals in interface Map.Entry<byte[],byte[]>
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface Map.Entry<byte[],byte[]>
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Returns a string representation of the form {key}={value}.
      Overrides:
      toString in class Object