|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.threerings.delta.ReflectiveDelta.FieldHandler
com.threerings.delta.ReflectiveDelta.FinalFieldHandler
protected abstract static class ReflectiveDelta.FinalFieldHandler
Base class for final field handlers.
| Constructor Summary | |
|---|---|
protected |
ReflectiveDelta.FinalFieldHandler()
|
| Method Summary | |
|---|---|
void |
populate(Field field,
Object original,
Object revised,
ArrayMask mask,
MutableInteger midx,
List<Object> values)
Compares the field in the original and revised objects and, if they differ, populates the supplied mask and values list with the delta values. |
void |
read(ArrayMask mask,
MutableInteger midx,
List<Object> values,
ObjectInputStream in)
Reads the delta value for the field (if any) from the stream. |
void |
toString(Field field,
ArrayMask mask,
MutableInteger midx,
Object[] values,
MutableInteger vidx,
StringBuilder buf)
Writes the delta value (if any) to the specified string. |
void |
write(ArrayMask mask,
MutableInteger midx,
Object[] values,
MutableInteger vidx,
ObjectOutputStream out)
Writes the delta value for the field (if any) to the stream. |
| Methods inherited from class com.threerings.delta.ReflectiveDelta.FieldHandler |
|---|
apply |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected ReflectiveDelta.FinalFieldHandler()
| Method Detail |
|---|
public void populate(Field field,
Object original,
Object revised,
ArrayMask mask,
MutableInteger midx,
List<Object> values)
ReflectiveDelta.FieldHandler
populate in class ReflectiveDelta.FieldHandlermidx - an in/out parameter representing the index in the mask.
public void write(ArrayMask mask,
MutableInteger midx,
Object[] values,
MutableInteger vidx,
ObjectOutputStream out)
ReflectiveDelta.FieldHandler
write in class ReflectiveDelta.FieldHandlermidx - an in/out parameter representing the index in the mask.vidx - an in/out parameter representing the index in the value array.
public void read(ArrayMask mask,
MutableInteger midx,
List<Object> values,
ObjectInputStream in)
ReflectiveDelta.FieldHandler
read in class ReflectiveDelta.FieldHandlermidx - an in/out parameter representing the index in the mask.
public void toString(Field field,
ArrayMask mask,
MutableInteger midx,
Object[] values,
MutableInteger vidx,
StringBuilder buf)
ReflectiveDelta.FieldHandler
toString in class ReflectiveDelta.FieldHandlermidx - an in/out parameter representing the index in the mask.vidx - an in/out parameter representing the index in the value array.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||