daikon
Class VarInfo.Pair

Object
  extended by 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.


Field Summary
 int samples
           
 VarInfo v1
           
 VarInfo v2
           
 
Constructor Summary
VarInfo.Pair(VarInfo v1, VarInfo v2, int samples)
           
 
Method Summary
 boolean equals(Object obj)
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

v1

public VarInfo v1

v2

public VarInfo v2

samples

public int samples
Constructor Detail

VarInfo.Pair

public VarInfo.Pair(VarInfo v1,
                    VarInfo v2,
                    int samples)
Method Detail

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object