Examples of inverseBidiMap()


Examples of org.apache.commons.collections.SortedBidiMap.inverseBidiMap()

        assertEquals(false, sub.containsKey(second));
        assertEquals(false, sub.containsValue(secondValue));
       
        assertEquals(true, sm.containsKey(toKey));
        assertEquals(true, sm.containsValue(toKeyValue));
        assertEquals(true, sm.inverseBidiMap().containsKey(toKeyValue));
        assertEquals(true, sm.inverseBidiMap().containsValue(toKey));
        assertEquals(false, sub.containsKey(toKey));
        assertEquals(false, sub.containsValue(toKeyValue));
    }
View Full Code Here

Examples of org.apache.commons.collections15.BidiMap.inverseBidiMap()

    //-----------------------------------------------------------------------
    public void testBidiInverse() {
        final BidiMap map = makeFullBidiMap();
        final BidiMap inverseMap = map.inverseBidiMap();

        assertSame("Inverse of inverse is not equal to original.", map, inverseMap.inverseBidiMap());

        assertEquals("Value not found for key.", entries[0][0], inverseMap.get(entries[0][1]));

        assertEquals("Key not found for value.", entries[0][1], inverseMap.getKey(entries[0][0]));
    }
View Full Code Here

Examples of org.apache.commons.collections15.SortedBidiMap.inverseBidiMap()

        int size = sm.size();
        assertEquals(2, sub.size());
        sub.clear();
        assertEquals(0, sub.size());
        assertEquals(size - 2, sm.size());
        assertEquals(size - 2, sm.inverseBidiMap().size());

        assertEquals(false, sm.containsKey(first));
        assertEquals(false, sm.containsValue(firstValue));
        assertEquals(false, sm.inverseBidiMap().containsKey(firstValue));
        assertEquals(false, sm.inverseBidiMap().containsValue(first));
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.