Code example for ConcurrentSkipListMap

Methods: get, values

0
    public Iterator<String> getVizualizerNamesIterator() {
        return models.keySet().iterator();
    } 
 
    public Iterator<AbstractGraphRow> getRowsIterator(String vizualizerName) {
        ConcurrentSkipListMap<String, AbstractGraphRow> rows = models.get(vizualizerName);
        if (rows != null) {
            return rows.values().iterator();
        } else { 
            return emptyIterator;
        } 
    } 
 
    public AbstractGraphRow getRow(String testName, String rowName) {
        ConcurrentSkipListMap<String, AbstractGraphRow> rows = models.get(testName);
        if (rows != null) {
            return models.get(testName).get(rowName);
        } else { 
            return null; 
        } 
    }