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

Method fill

lib/java/util/Collections.java:1642–1648  ·  view source on GitHub ↗

Fills the specified list with the specified element. @param list the list to fill. @param object the element to fill the list with. @throws UnsupportedOperationException when replacing an element in the List is not supported.

(List<? super T> list, T object)

Source from the content-addressed store, hash-verified

1640 * when replacing an element in the List is not supported.
1641 */
1642 public static <T> void fill(List<? super T> list, T object) {
1643 ListIterator<? super T> it = list.listIterator();
1644 while (it.hasNext()) {
1645 it.next();
1646 it.set(object);
1647 }
1648 }
1649
1650 /**
1651 * Searches the specified collection for the maximum element.

Callers

nothing calls this directly

Calls 4

listIteratorMethod · 0.65
hasNextMethod · 0.65
nextMethod · 0.65
setMethod · 0.65

Tested by

no test coverage detected