示例#1
0
 /* (non-Javadoc)
  * @see java.lang.Object#equals(java.lang.Object)
  * Returns true if the IDs and values are equal. Values can be unassigned, but then both have to be unassigned
  */
 public boolean equals(Object to) {
   if (to != null && to instanceof Assignment) {
     Assignment other = (Assignment) to;
     if (variableId.equals(other.getVariableId()))
       if ((value == null && other.getValue() == null) || value.equals(other.getValue()))
         return true;
   }
   return false;
 }