Package bak.pcj.map

Examples of bak.pcj.map.IntKeyMapIterator


    public boolean containsValue(Object value)
    { return map.containsValue(value); }

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

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


    }

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

TOP

Related Classes of bak.pcj.map.IntKeyMapIterator

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.