Class MappedNode

java.lang.Object
ca.marcusdunn.jsonlens.mapped.MappedNode

public final class MappedNode extends Object

A JSON value in a MappedJson.

A node is only a position in the structural index of its MappedJson. It holds no copy of the value. Only MappedJson makes nodes. Each read makes a new node, but two nodes for the same value are equal: they have the same MappedJson and the same position.

  • Method Details

    • equals

      public boolean equals(@Nullable Object other)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object