int nr = data.deleteResult.length; for ( int j = 0; j < nr; j++ ) { if ( data.deleteResult[j].isSuccess() ) {
public synchronized int hashCode() { if (__hashCodeCalc) { return 0; } __hashCodeCalc = true; int _hashCode = 1; if (getErrors() != null) { for (int i = 0; i < java.lang.reflect.Array.getLength(getErrors()); i++) { java.lang.Object obj = java.lang.reflect.Array.get(getErrors(), i); if (obj != null && !obj.getClass().isArray()) { _hashCode += obj.hashCode(); } } } if (getId() != null) { _hashCode += getId().hashCode(); } _hashCode += (isSuccess() ? Boolean.TRUE : Boolean.FALSE).hashCode(); __hashCodeCalc = false; return _hashCode; }
public synchronized boolean equals(java.lang.Object obj) { if (!(obj instanceof DeleteResult)) return false; DeleteResult other = (DeleteResult) obj; if (obj == null) return false; if (this == obj) return true; if (__equalsCalc != null) { return (__equalsCalc == obj); } __equalsCalc = obj; boolean _equals; _equals = true && ((this.errors == null && other.getErrors() == null) || (this.errors != null && java.util.Arrays.equals(this.errors, other.getErrors()))) && ((this.id == null && other.getId() == null) || (this.id != null && this.id.equals(other.getId()))) && this.success == other.isSuccess(); __equalsCalc = null; return _equals; }
for(int i = 0; i < results.length; i++) { DeleteResult result = results[i]; if(!result.isSuccess()) { if(allGood) { errorMessages.append("Error(s) executing DELETE: "); //$NON-NLS-1$