net.javamud.run
Interface SISGroveller
- All Superinterfaces:
- Runnable
- public interface SISGroveller
- extends Runnable
Single Instance Storage Groveller.
When the Groveller is Runnable.run()
, the Groveller (which has some implicit
knowlage of where to start searching) will search for SISCapable objects,
build up a list of Objects and replacing those objects where (x!=y and
x.equals(y) and x.getClass()==y.getClass()) with just a single object
resulting in only a single instance of that object. This should result is a
saving of memory.
Only immutable objects where equals() and compareTo() operators will not be
affected by this change should implement SISCapable to avoid unexpected side
effects.
- Author:
- Timothy Hinchcliffe
- Created On:
- 15 June 2002
Methods inherited from interface java.lang.Runnable |
run |