soot.toolkits.scalar
Class Pair<T,U>

java.lang.Object
  extended by soot.toolkits.scalar.Pair<T,U>
Direct Known Subclasses:
DemandCSPointsTo.CallSiteAndContext, SootUtil.CallSiteAndContext

public class Pair<T,U>
extends Object

Just a pair of arbitrary objects.

Author:
Ondrej Lhotak, Manu Sridharan (genericized it), xiao, extend it with more functions

Field Summary
protected  T o1
           
protected  U o2
           
 
Constructor Summary
Pair()
           
Pair(T o1, U o2)
           
 
Method Summary
 boolean equals(Object obj)
           
 T getO1()
           
 U getO2()
           
 int hashCode()
           
 boolean isParameter()
          Decide if this pair represents a method parameter.
 boolean isThisParameter()
          Decide if this pair stores the THIS parameter for a method.
 void setO1(T no1)
           
 void setO2(U no2)
           
 void setPair(T no1, U no2)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

o1

protected T o1

o2

protected U o2
Constructor Detail

Pair

public Pair()

Pair

public Pair(T o1,
            U o2)
Method Detail

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

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

isParameter

public boolean isParameter()
Decide if this pair represents a method parameter.


isThisParameter

public boolean isThisParameter()
Decide if this pair stores the THIS parameter for a method.


toString

public String toString()
Overrides:
toString in class Object

getO1

public T getO1()

getO2

public U getO2()

setO1

public void setO1(T no1)

setO2

public void setO2(U no2)

setPair

public void setPair(T no1,
                    U no2)