Class MapSameKeyWrapper

java.lang.Object
org.rumbledb.items.MapSameKeyWrapper

public final class MapSameKeyWrapper extends Object
Hash/equals wrapper for map keys compatible with op:same-key.

Invariant: if MapAtomicSameKey.sameKey(Item, Item) holds for two keys, their wrappers must have equal hashCode() and equals(Object). Collisions only affect performance.

  • Constructor Details

    • MapSameKeyWrapper

      public MapSameKeyWrapper(Item key)
  • Method Details

    • getKey

      public Item getKey()
    • hashCode

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

      public boolean equals(Object o)
      Overrides:
      equals in class Object