Exemplo n.º 1
0
 @Override
 public boolean equals(Object obj) {
   if (obj instanceof PointsToSetVariable) {
     return pointerKey.equals(((PointsToSetVariable) obj).pointerKey);
   } else {
     return false;
   }
 }
Exemplo n.º 2
0
 @Override
 public String toString() {
   return pointerKey.toString() + ":" + super.toString();
 }
Exemplo n.º 3
0
 /**
  * Use this with extreme care, to add filters to this variable..
  *
  * @param pointerKey The pointerKey to set.
  */
 void setPointerKey(PointerKey pointerKey) {
   // check that we haven't modified the hash code!!! this is crucial
   assert this.pointerKey.hashCode() == pointerKey.hashCode();
   this.pointerKey = pointerKey;
 }