org.starhope.appius.user
Interface DataRecordBacked<T extends DataRecord>

Type Parameters:
T - the type of data record backing objects of this class
All Known Subinterfaces:
AbstractUser, PetFromInventory, ScriptPuppet, TrainCar
All Known Implementing Classes:
AbstractNonPlayerCharacter, Ejecta, GeneralUser, Particle, Plebeian, Projectile, QuestItemExchanger, User

public interface DataRecordBacked<T extends DataRecord>

This is a marker interface used to bypass the type system. While the interface does not have the ability to explicitly enforce this limitation, it's mandatory to provide a 1-argument constructor which takes .

Author:
brpocock@star-hope.org

Method Summary
 void setBackingRecord(T rec)
          Force the backing record for this object to be the given one.
 

Method Detail

setBackingRecord

void setBackingRecord(T rec)
Force the backing record for this object to be the given one. This is used to ensure that the backing record can't fall out of sync due to caché users.

Parameters:
rec - the backing record