microsoft-azure-storage/src/com/microsoft/azure/storage/table/TableBatchOperation.java
private void lockToPartitionKey(final String partitionKey) {
        if (this.partitionKey == null) {
            this.partitionKey = partitionKey;
        }
        else {
            if (partitionKey.length() != partitionKey.length() || !this.partitionKey.equals(partitionKey)) {
                throw new IllegalArgumentException(SR.OPS_IN_BATCH_MUST_HAVE_SAME_PARTITION_KEY);
            }
        }
    }
private void lockToPartitionKey(final String partitionKey) {
        if (this.partitionKey == null) {
            this.partitionKey = partitionKey;
        }
        else {
            if (partitionKey.length() != partitionKey.length() || !this.partitionKey.equals(partitionKey)) {
                throw new IllegalArgumentException(SR.OPS_IN_BATCH_MUST_HAVE_SAME_PARTITION_KEY);
            }
        }
    }
private void lockToPartitionKey ( final String partitionKey ) { if ( this . partitionKey == null ) { this . partitionKey = partitionKey ; } else { if ( partitionKey . length ( ) != partitionKey . length ( ) || ! this . partitionKey . equals ( partitionKey ) ) { throw new IllegalArgumentException ( SR . OPS_IN_BATCH_MUST_HAVE_SAME_PARTITION_KEY ) ; } } }
Reserved for internal use. Verifies that the specified PartitionKey value matches the value in the batch
operation.

@param partitionKey
The <code>String</code> containing the PartitionKey value to check.
Reserved for internal use . Verifies that the specified PartitionKey value matches the value in the batch operation .