Package org.jboss.profiler.filecollection

Examples of org.jboss.profiler.filecollection.QuickSorter


    /** a ReferenceContainer for the Object passed as parameter */
    public ReferenceContainer selectReferences(MemoryObject object, boolean forward) throws Exception
    {
        MemoryReference key = new MemoryReference();
        QuickSorter sorter = null;
        FileCollection collection = null;
        if (forward)
        {
            key.setReferee(object.getId());
            key.setReferred(-1);

            collection = engine.references;
            sorter = engine.sorter;
        } else
        {
            key.setReferee(-1);
            key.setReferred(object.getId());

            collection = engine.invertedReferences;
            sorter = engine.invertedSorter;
        }

        ReferenceContainer container = new ReferenceContainer(object);

        ArrayList referencesFound = sorter.binarySearchCollection(collection,key);

        Iterator iter = referencesFound.iterator();

        while (iter.hasNext())
        {
View Full Code Here

TOP

Related Classes of org.jboss.profiler.filecollection.QuickSorter

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.