Package xbird.util.collections.ints.Int2LongOpenHash

Examples of xbird.util.collections.ints.Int2LongOpenHash.Int2LongOpenLRUMap.entries()


        // eviction order is now 2,3,1
        map.put(4, 4L);
        // 2 should be evicted (then 3,1,4)
        int[] keys = new int[3];
        int i = 0;
        IMapIterator itor = map.entries();
        while(itor.next() != -1) {
            keys[i++] = itor.getKey();
        }
        Assert.assertEquals(keys[0], 3);
        Assert.assertEquals(keys[1], 1);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.