Home
last modified time | relevance | path

Searched refs:ListN (Results 1 – 1 of 1) sorted by relevance

/libcore/ojluni/src/main/java/java/util/
DImmutableCollections.java100 static final ListN<?> EMPTY_LIST = new ListN<>(new Object[0], false);
101 static final ListN<?> EMPTY_LIST_NULLS = new ListN<>(new Object[0], true);
176 if (coll instanceof List12 || (coll instanceof ListN && ! ((ListN<?>)coll).allowNulls)) { in listCopy()
199 return new ListN<>(tmp, false); in listFromArray()
227 default -> (List<E>) new ListN<>(input, false); in listFromTrustedArray()
252 return new ListN<>((E[])input, true); in listFromTrustedArrayNullsAllowed()
447 assert root instanceof List12 || root instanceof ListN; in SubList() local
498 return root instanceof ListN && ((ListN<?>)root).allowNulls; in allowNulls()
660 static final class ListN<E> extends AbstractImmutableList<E> class
670 private ListN(E[] elements, boolean allowNulls) { in ListN() method in ListN