microsoft-azure-storage/src/com/microsoft/azure/storage/table/TableOperation.java
public static TableOperation replace(final TableEntity entity) {
        Utility.assertNotNullOrEmpty("entity etag", entity.getEtag());
        return new TableOperation(entity, TableOperationType.REPLACE);
    }
public static TableOperation replace(final TableEntity entity) {
        Utility.assertNotNullOrEmpty("entity etag", entity.getEtag());
        return new TableOperation(entity, TableOperationType.REPLACE);
    }
A static factory method returning a {@link TableOperation} instance to replace the specified table entity. To
execute this {@link TableOperation} on a given table, call the
{@link CloudTable#execute(TableOperation)} method.

@param entity
The object instance implementing {@link TableEntity} to associate with the operation.
@return
A new {@link TableOperation} instance for replacing the table entity.