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)
| 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. |
nothing calls this directly
no test coverage detected