Here you can find the source of asList(AtomicReferenceArray
private static <T> List<T> asList(AtomicReferenceArray<T> a)
//package com.java2s; //License from project: Open Source License import java.util.ArrayList; import java.util.List; import java.util.concurrent.atomic.AtomicReferenceArray; public class Main { private static <T> List<T> asList(AtomicReferenceArray<T> a) { List<T> list = new ArrayList<T>(a.length()); for (int i = 0; i < a.length(); i++) { list.add(a.get(i));/*from ww w . ja v a 2 s. c om*/ } return list; } }