Here you can find the source of isRandomList(List> list)
private static boolean isRandomList(List<?> list)
//package com.java2s; //License from project: Open Source License import java.util.*; public class Main { private static boolean isRandomList(List<?> list) { return (list instanceof RandomAccess); }/*w ww.j a v a 2s . c o m*/ }