public abstract class AbstractReplaceOperation<T> extends AbstractListOperation<T>
| 限定符和类型 | 字段和说明 |
|---|---|
protected T |
oldValues |
static int |
TYPE |
length, startIndex, valuesid, type| 限定符 | 构造器和说明 |
|---|---|
protected |
AbstractReplaceOperation(String id,
int startIndex,
T oldValues,
T newValues) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
apply(ListTarget<T> target)
Applies this operation to the given target
|
protected abstract AbstractReplaceOperation<T> |
create(int startIndex,
T oldValues,
T newValues) |
int |
transformIndexReference(int index,
boolean rigthSide,
boolean canBeDeleted) |
AbstractReplaceOperation<T>[] |
transformWith(AbstractOperation<ListTarget<T>> operation,
boolean arrivedAfter) |
getHelper, parseStartIndex, toStringasArray, equals, hashCode, invert, isSameId, parseId, toString, transformWithpublic void apply(ListTarget<T> target)
Operationtarget - target on which this operation applies itselfpublic int transformIndexReference(int index,
boolean rigthSide,
boolean canBeDeleted)
transformIndexReference 在类中 AbstractListOperation<T>rigthSide - Which 'side' of the gap the cursor is in.public AbstractReplaceOperation<T>[] transformWith(AbstractOperation<ListTarget<T>> operation, boolean arrivedAfter)
transformWith 在类中 AbstractOperation<ListTarget<T>>arrivedAfter - Whether this operation reaches the server after operation.protected abstract AbstractReplaceOperation<T> create(int startIndex, T oldValues, T newValues)
Copyright © 2013. All Rights Reserved.