Code example for SortedMap

Methods: comparator

0
            } 
        } 
    } 
                 
    public final void testComparator() { 
        assertEquals(ref.comparator(), map.comparator());
    } 
 
     
    public final void testFirstKey() { 
        assertEquals(ref.firstKey(), map.firstKey());
    } 
 
     
    public final void testHeadMap() { 
        for (int i = 0; i < TRIES; i++) {
            int key = rnd.nextInt(N);
            checkSubMap(ref.headMap(key), map.headMap(key));        
        } 
        checkSubMap(ref.headMap(-1), map.headMap(-1));      
    }