Wraps the specified array allowing access to its data as a fixed size list. The returned List will have RandomAccess implemented. @param The type of values contained within the array. @param __a The array to wrap. @return The specified array wrapped in a List. @throws Nu
(T... __a)
| 47 | * @since 2016/08/31 |
| 48 | */ |
| 49 | @SuppressWarnings({"unchecked"}) |
| 50 | public static <T> List<T> asList(T... __a) |
| 51 | throws NullPointerException |
| 52 | { |
| 53 | // Check |
| 54 | if (__a == null) |
| 55 | throw new NullPointerException("NARG"); |
| 56 | |
| 57 | // Wrap it |
| 58 | return new __ArraysList__<T>(__a); |
| 59 | } |
| 60 | |
| 61 | public static int binarySearch(long[] __a, long __b) |
| 62 | { |
no outgoing calls
no test coverage detected