|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.threerings.delta.ReflectiveDelta.FieldHandler
protected abstract static class ReflectiveDelta.FieldHandler
Handles a particular field.
| Constructor Summary | |
|---|---|
protected |
ReflectiveDelta.FieldHandler()
|
| Method Summary | |
|---|---|
abstract void |
apply(Field field,
Object original,
Object revised,
ArrayMask mask,
MutableInteger midx,
Object[] values,
MutableInteger vidx)
Applies the delta value (if any) to the provided objects. |
abstract 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. |
abstract 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. |
abstract 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 java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected ReflectiveDelta.FieldHandler()
| Method Detail |
|---|
public abstract void populate(Field field,
Object original,
Object revised,
ArrayMask mask,
MutableInteger midx,
List<Object> values)
throws IllegalAccessException
midx - an in/out parameter representing the index in the mask.
IllegalAccessException
public abstract void write(ArrayMask mask,
MutableInteger midx,
Object[] values,
MutableInteger vidx,
ObjectOutputStream out)
throws IOException
midx - an in/out parameter representing the index in the mask.vidx - an in/out parameter representing the index in the value array.
IOException
public abstract void read(ArrayMask mask,
MutableInteger midx,
List<Object> values,
ObjectInputStream in)
throws IOException,
ClassNotFoundException
midx - an in/out parameter representing the index in the mask.
IOException
ClassNotFoundException
public abstract void apply(Field field,
Object original,
Object revised,
ArrayMask mask,
MutableInteger midx,
Object[] values,
MutableInteger vidx)
throws IllegalAccessException
midx - an in/out parameter representing the index in the mask.vidx - an in/out parameter representing the index in the value array.
IllegalAccessException
public void toString(Field field,
ArrayMask mask,
MutableInteger midx,
Object[] values,
MutableInteger vidx,
StringBuilder buf)
midx - 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 | ||||||||