public synchronized int hashCode() { if (__hashCodeCalc) { return 0; } __hashCodeCalc = true; int _hashCode = 1; if (getEncoding() != null) { _hashCode += getEncoding().hashCode(); } _hashCode += getMaxBatchSize(); if (getSobjects() != null) { for (int i = 0; i < java.lang.reflect.Array.getLength(getSobjects()); i++) { java.lang.Object obj = java.lang.reflect.Array.get(getSobjects(), i); if (obj != null && !obj.getClass().isArray()) { _hashCode += obj.hashCode(); } } } __hashCodeCalc = false; return _hashCode; }
public synchronized boolean equals(java.lang.Object obj) { if (!(obj instanceof DescribeGlobalResult)) return false; DescribeGlobalResult other = (DescribeGlobalResult) obj; if (obj == null) return false; if (this == obj) return true; if (__equalsCalc != null) { return (__equalsCalc == obj); } __equalsCalc = obj; boolean _equals; _equals = true && ((this.encoding == null && other.getEncoding() == null) || (this.encoding != null && this.encoding.equals(other.getEncoding()))) && this.maxBatchSize == other.getMaxBatchSize() && ((this.sobjects == null && other.getSobjects() == null) || (this.sobjects != null && java.util.Arrays.equals(this.sobjects, other.getSobjects()))); __equalsCalc = null; return _equals; }