Returns an ArrayList with all the elements in the enumeration. The elements in the returned ArrayList are in the same order as in the enumeration. @param enumeration the source Enumeration. @return an ArrayList from enumeration.
(Enumeration<T> enumeration)
| 2230 | * @return an {@code ArrayList} from {@code enumeration}. |
| 2231 | */ |
| 2232 | public static <T> ArrayList<T> list(Enumeration<T> enumeration) { |
| 2233 | ArrayList<T> list = new ArrayList<T>(); |
| 2234 | while (enumeration.hasMoreElements()) { |
| 2235 | list.add(enumeration.nextElement()); |
| 2236 | } |
| 2237 | return list; |
| 2238 | } |
| 2239 | |
| 2240 | /** |
| 2241 | * Returns a wrapper on the specified collection which synchronizes all |
nothing calls this directly
no test coverage detected