public final class Operation extends Object implements Serializable
| Modifier and Type | Class and Description |
|---|---|
static class |
Operation.Builder
A builder for
Operation objects. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
boolean |
first()
Returns
true if the corresponding entry is the first log entry in the operation, false otherwise. |
String |
getId()
Returns the operation identifier.
|
String |
getProducer()
Returns an arbitrary producer identifier.
|
int |
hashCode() |
boolean |
last()
Returns
true if the corresponding entry is the last log entry in the operation, false otherwise. |
static Operation.Builder |
newBuilder(String id,
String producer)
Returns a builder for
Operation objects given the operation and producer identifiers. |
static Operation |
of(String id,
String producer)
Returns a
Operation object given the operation and producer identifiers. |
Operation.Builder |
toBuilder()
Returns a
Builder for this operation. |
String |
toString() |
public String getId()
getProducer() must be
globally unique.public String getProducer()
getId()
must be globally unique. Examples: MyDivision.MyBigCompany.com, github.com/MyProject/MyApplication.public boolean first()
true if the corresponding entry is the first log entry in the operation, false otherwise.public boolean last()
true if the corresponding entry is the last log entry in the operation, false otherwise.public Operation.Builder toBuilder()
Builder for this operation.public static Operation.Builder newBuilder(String id, String producer)
Operation objects given the operation and producer identifiers.
The combination of producer and id must be globally unique.Copyright © 2019 Google LLC. All rights reserved.