- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for unsafeDelegateList (0.07 sec)
-
guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableList.java
} } // Factory method that skips the null checks. Used only when the elements // are guaranteed to be non-null. static <E> ImmutableList<E> unsafeDelegateList(List<? extends E> list) { switch (list.size()) { case 0: return of(); case 1: return of(list.get(0)); default: @SuppressWarnings("unchecked")
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Jun 14 22:14:46 UTC 2024 - 11.1K bytes - Viewed (0) -
guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ForwardingImmutableList.java
return delegateList().lastIndexOf(object); } public E get(int index) { return delegateList().get(index); } public ImmutableList<E> subList(int fromIndex, int toIndex) { return unsafeDelegateList(delegateList().subList(fromIndex, toIndex)); } @Override public Object[] toArray() { // Note that ArrayList.toArray() doesn't work here because it returns E[] // instead of Object[].
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Jan 23 18:43:40 UTC 2024 - 2.5K bytes - Viewed (0)