public abstract class AbstractOperation<T> extends Object implements Operation<T>
| 限定符 | 构造器和说明 |
|---|---|
protected |
AbstractOperation(int type,
String id) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected <O> O[] |
asArray(O... operations) |
boolean |
equals(Object obj) |
int |
hashCode() |
abstract AbstractOperation<T> |
invert() |
protected boolean |
isSameId(AbstractOperation<?> operation) |
protected static String |
parseId(elemental.json.JsonArray serialized) |
String |
toString() |
protected abstract void |
toString(StringBuilder sb) |
abstract AbstractOperation<T>[] |
transformWith(AbstractOperation<T> operation,
boolean arrivedAfter) |
Pair<AbstractOperation<T>[],AbstractOperation<T>[]> |
transformWith(Operation<T> serverOperation) |
public final int type
public final String id
protected AbstractOperation(int type,
String id)
protected static String parseId(elemental.json.JsonArray serialized)
public abstract AbstractOperation<T> invert()
public abstract AbstractOperation<T>[] transformWith(AbstractOperation<T> operation, boolean arrivedAfter)
operation - arrivedAfter - Whether this operation reaches the server after operation.public Pair<AbstractOperation<T>[],AbstractOperation<T>[]> transformWith(Operation<T> serverOperation)
transformWith 在接口中 Operation<T>@SafeVarargs protected final <O> O[] asArray(O... operations)
protected boolean isSameId(AbstractOperation<?> operation)
protected abstract void toString(StringBuilder sb)
Copyright © 2013. All Rights Reserved.