collection = engine.invertedReferences;
sorter = engine.invertedSorter;
}
ReferenceContainer container = new ReferenceContainer(object);
ArrayList referencesFound = sorter.binarySearchCollection(collection,key);
Iterator iter = referencesFound.iterator();
while (iter.hasNext())
{
MemoryReference referenceInstance = (MemoryReference)iter.next();
MemoryObject memoryObject = null;
if (forward)
{
memoryObject = this.selectObject(referenceInstance.getReferred());
} else
{
memoryObject = this.selectObject(referenceInstance.getReferee());
}
referenceInstance.setObjectReferred(memoryObject);
}
container.setListOfReferences(referencesFound);
return container;
}