Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;

public class Main {
    public final static <GOutput> List<GOutput> toOrderedList(final Map<Integer, GOutput> responseMap) {
        final List<GOutput> localResponses = new ArrayList<GOutput>(responseMap.size());
        for (int i = 0; i < responseMap.size(); i++) {
            final GOutput rr = responseMap.get(Integer.valueOf(i));

            assert rr != null;

            localResponses.add(rr);
        }
        return localResponses;
    }
}