Package daikon

Class VarInfo.Pair

  • Enclosing class:
    VarInfo

    public static class VarInfo.Pair
    extends Object
    Class used to contain a pair of VarInfos and their sample count. Currently used for equality set merging as a way to store pairs of equal variables. The variable with the smaller index is always stored first.

    Pairs are equal if both of their VarInfos are identical. Note that the content of the VarInfos are not compared, only their pointer values.

    • Method Detail

      • equals

        @EnsuresNonNullIf(result=true,
                          expression="#1")
        @Pure
        public boolean equals​(@GuardSatisfied VarInfo.Pair this,
                              @GuardSatisfied @Nullable Object obj)
        Overrides:
        equals in class Object
      • hashCode

        @Pure
        public int hashCode​(@GuardSatisfied @UnknownSignedness VarInfo.Pair this)
        Overrides:
        hashCode in class Object