final String thisValue = this.getValue(); final String thatValue = that.getValue(); if (!(thisValue == thatValue)) { result = (thisValue != null && thisValue.equals(thatValue));
Parameter that = (Parameter) obj; if (!(this.name == null)) { result = this.name.equals(that.name); } else { result = (that.name == null); } if (result) { if (!(this.value == null)) { result = (this.value.equals(that.value)); } else { result = (that.value == null); }
   public boolean equals(Object object)	{		boolean result = false;		if (object instanceof Parameter && object != null) //avoid findbugs correctness warning		{			final Parameter that = (Parameter) object;			final String thisName = this.getName();			final String thatName = that.getName();			if(!(thisName == thatName)) { // compare names taking care of nulls				result = (thisName != null && thisName.equals(thatName));							}			//compare values if names are equal			if (result)			{				final String thisValue = this.getValue();				final String thatValue = that.getValue();				if (!(thisValue == thatValue)) // consider equality with nulls				{ 					result = (thisValue != null && thisValue.equals(thatValue));				}			}		}		return result;	}