Returns a List of the objects in the specified array. The size of the List cannot be modified, i.e. adding and removing are unsupported, but the elements can be set. Setting an element modifies the underlying array. @param array the array. @return a List of the el
(T... array)
| 162 | * @return a {@code List} of the elements of the specified array. |
| 163 | */ |
| 164 | public static <T> List<T> asList(T... array) { |
| 165 | return new ArrayList<T>(array); |
| 166 | } |
| 167 | |
| 168 | /** |
| 169 | * Performs a binary search for the specified element in the specified |