Java tutorial
//package com.java2s; import java.util.Map; public class Main { public final static <GPOutput> boolean isMapComplete(final Map<Integer, GPOutput> map, final int size) { for (int i = 0; i < size; i++) { if (map.get(Integer.valueOf(i)) == null) { return false; } } return true; } }