public final void addReference(Object ref){
  refSet.add(ref);
}

public final void addReference ( Object ref ) { refSet . add ( ref ) ; }
adds the given object to the set of hard references , which will prevent that object from being disposed until the queue has been flushed completely . this is useful in cases where some enqueued data could become invalid if the reference object were garbage collected before the queue could be processed . ( for example , keeping a hard reference to a fontstrike will prevent any enqueued glyph images associated with that strike from becoming invalid before the queue is flushed . ) the reference set will be cleared immediately after the queue is flushed each time .
