Code example for AbstractMap.SimpleEntry

Methods: getKey

0
        } 
         
    } 
     
    public void test_SimpleEntry_getKey() throws Exception { 
        Entry entry = new AbstractMap.SimpleEntry<Integer, String>(1,"test");
        assertEquals(1,entry.getKey());
        entry = new AbstractMap.SimpleEntry(null,null);
        assertNull(entry.getKey());
    } 
     
    public void test_SimpleEntry_getValue() throws Exception { 
        Entry entry = new AbstractMap.SimpleEntry<Integer, String>(1,"test");
        assertEquals("test",entry.getValue());
        entry = new AbstractMap.SimpleEntry(null,null);
        assertNull(entry.getValue());
    } 
     
    public void test_SimpleEntry_setValue() throws Exception { 
        Entry entry = new AbstractMap.SimpleEntry<Integer, String>(1,"test");
Connect your IDE to all the code out there  Get Codota for Java