Class AbstractArrayItem

java.lang.Object
org.rumbledb.items.AbstractArrayItem
All Implemented Interfaces:
Serializable, Item
Direct Known Subclasses:
ArrayItem, SequenceArrayItem

public abstract class AbstractArrayItem extends Object implements Item
Structural Java equality for both JSON arrays and XDM sequence-member arrays.
See Also:
  • Constructor Details

    • AbstractArrayItem

      public AbstractArrayItem()
  • Method Details

    • equals

      public final boolean equals(Object other)
      Description copied from interface: Item
      Tests for logical equality. The semantics are that of the eq operator.
      Specified by:
      equals in interface Item
      Overrides:
      equals in class Object
      Parameters:
      other - another item.
      Returns:
      true it is equal to other, false otherwise.
    • hashCode

      public final int hashCode()
      Description copied from interface: Item
      Computes a hash code.
      Specified by:
      hashCode in interface Item
      Overrides:
      hashCode in class Object
      Returns:
      a hash code as an int.