MCPcopy Create free account
hub / github.com/davidgiven/luje / list

Method list

lib/java/util/Collections.java:2232–2238  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 3

addMethod · 0.95
hasMoreElementsMethod · 0.65
nextElementMethod · 0.65

Tested by

no test coverage detected