/** * Returns a {@code Operation} object given the operation and producer identifiers. The * combination of producer and id must be globally unique. */ public static Operation of(String id, String producer) { return newBuilder(id, producer).build(); }
static Operation fromPb(LogEntryOperation operationPb) { return newBuilder(operationPb.getId(), operationPb.getProducer()) .setFirst(operationPb.getFirst()) .setLast(operationPb.getLast()) .build(); } }
/** * Returns a {@code Operation} object given the operation and producer identifiers. The * combination of producer and id must be globally unique. */ public static Operation of(String id, String producer) { return newBuilder(id, producer).build(); }
static Operation fromPb(LogEntryOperation operationPb) { return newBuilder(operationPb.getId(), operationPb.getProducer()) .setFirst(operationPb.getFirst()) .setLast(operationPb.getLast()) .build(); } }