Package bak.pcj.map

Examples of bak.pcj.map.IntKeyIntMapIterator


    }

    public String benchmarkIterator(DataSet dataSet) {
        IntKeyIntMap c = create(dataSet.get(0), dataSet.get(0));
        startTimer();
        IntKeyIntMapIterator it = c.entries();
        while (it.hasNext()) {
            it.next();
            it.getKey();
            it.getValue();
        }
        stopTimer();
        return "Iteration over " + c.size() + " mappings";
    }
View Full Code Here


    public boolean containsValue(int value)
    { return map.containsValue(new Integer(value)); }

    public IntKeyIntMapIterator entries() {
        return new IntKeyIntMapIterator() {
            Iterator i = map.entrySet().iterator();
            Map.Entry lastEntry = null;

            public boolean hasNext()
            { return i.hasNext(); }
View Full Code Here

TOP

Related Classes of bak.pcj.map.IntKeyIntMapIterator

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.