Here you can find the source of getIgnoreNull(List
public static <T> T getIgnoreNull(List<T> list, int n)
//package com.java2s; //License from project: Apache License import java.util.List; public class Main { public static <T> T getIgnoreNull(List<T> list, int n) { int cnt = 0; for (T i : list) if (i != null) { if (cnt == n) return i; cnt++;//from w w w . j a va2 s. co m } return null; } }