Class IdentityPair<K,V>

java.lang.Object
heros.solver.Pair<K,V>
soot.jimple.infoflow.collect.IdentityPair<K,V>
Type Parameters:
K - Type of the first element in the pair
V - Type of the second element in the pair

public class IdentityPair<K,V> extends heros.solver.Pair<K,V>
Pair class that uses object identities for equals() and hashCode()
Author:
Steven Arzt
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected int
     
    protected int
     

    Fields inherited from class heros.solver.Pair

    hashCode, o1, o2
  • Constructor Summary

    Constructors
    Constructor
    Description
    IdentityPair(K o1, V o2)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    equals(Object other)
     
    int
     
    void
    setO1(K o1)
     
    void
    setO2(V o2)
     

    Methods inherited from class heros.solver.Pair

    getO1, getO2, setPair, toString

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • o1Hash

      protected int o1Hash
    • o2Hash

      protected int o2Hash
  • Constructor Details

    • IdentityPair

      public IdentityPair(K o1, V o2)
  • Method Details

    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class heros.solver.Pair<K,V>
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class heros.solver.Pair<K,V>
    • setO1

      public void setO1(K o1)
      Overrides:
      setO1 in class heros.solver.Pair<K,V>
    • setO2

      public void setO2(V o2)
      Overrides:
      setO2 in class heros.solver.Pair<K,V>