Package hydra.paths

Class SubtermStep.MapEntry

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<SubtermStep>
    Enclosing class:
    SubtermStep

    public static final class SubtermStep.MapEntry
    extends SubtermStep
    implements java.io.Serializable
    Access the map entry at the given index as a pair (k, v). Accessing this step constructs the pair; the entry is not itself a subterm occurrence, though its key and value components are, reached via pairFirst/pairSecond. Entry indexes follow the total order on serializable terms.
    See Also:
    Serialized Form
    • Field Detail

      • value

        public final java.lang.Integer value
    • Constructor Detail

      • MapEntry

        public MapEntry​(java.lang.Integer value)
        Constructs an immutable SubtermStep.MapEntry.
    • Method Detail

      • equals

        public boolean equals​(java.lang.Object other)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • compareTo

        public int compareTo​(SubtermStep other)
        Specified by:
        compareTo in interface java.lang.Comparable<SubtermStep>