microsoft-azure-storage/src/com/microsoft/azure/storage/table/TableBatchOperation.java
public void replace(final TableEntity entity) {
        this.lockToPartitionKey(entity.getPartitionKey());
        this.add(TableOperation.replace(entity));
    }
public void replace(final TableEntity entity) {
        this.lockToPartitionKey(entity.getPartitionKey());
        this.add(TableOperation.replace(entity));
    }
Adds a table operation to replace the specified entity to the batch operation.

@param entity
The {@link TableEntity} to replace.