interface
Ref
Lightweight entity reference with validity tracking. Use getStore() to get the Store, getIndex() for entity index, isValid() to check validity, validate() to verify (throws if invalid). Never store direct entity references - always use Ref.
Methods
int getIndex()
Gets the entity index within the store
Store getStore()
Gets the Store this Ref belongs to
boolean isValid()
Checks if the entity reference is still valid (not deleted)
void validate()
Validates the reference, throws exception if entity was deleted