Package net.openhft.collections

Examples of net.openhft.collections.SharedHashMap.containsValue()


     * contains returns true for contained value
     */
    @Test
    public void testContains() throws IOException {
        SharedHashMap map = map5();
        assertTrue(map.containsValue("A"));
        assertFalse(map.containsValue("Z"));
    }

    /**
     * containsKey returns true for contained key
View Full Code Here


     */
    @Test
    public void testContains() throws IOException {
        SharedHashMap map = map5();
        assertTrue(map.containsValue("A"));
        assertFalse(map.containsValue("Z"));
    }

    /**
     * containsKey returns true for contained key
     */
 
View Full Code Here

     * containsValue returns true for held values
     */
    @Test
    public void testContainsValue() throws IOException {
        SharedHashMap map = map5();
        assertTrue(map.containsValue("A"));
        assertFalse(map.containsValue("Z"));
    }


    /**
 
View Full Code Here

     */
    @Test
    public void testContainsValue() throws IOException {
        SharedHashMap map = map5();
        assertTrue(map.containsValue("A"));
        assertFalse(map.containsValue("Z"));
    }


    /**
     * Inserted elements that are subclasses of the same Comparable
View Full Code Here

        Set s = map.entrySet();
        Object[] ar = s.toArray();
        assertEquals(5, ar.length);
        for (int i = 0; i < 5; ++i) {
            assertTrue(map.containsKey(((Map.Entry) (ar[i])).getKey()));
            assertTrue(map.containsValue(((Map.Entry) (ar[i])).getValue()));
        }
    }

    /**
     * values collection contains all values
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.