igor.wojda02/09/2021, 12:41 PM
Dmitry02/09/2021, 12:47 PM
is created. It is extended from List, because author want it to have all the functionality that list have. But we don’t want to implement that all by ourselves. So we delegate all of those methods on
interface that to actual list with
Matteo Mirk02/09/2021, 1:16 PM
wbertan02/09/2021, 1:27 PM
also guarantee it will have at least one item in the list.
Vampire02/09/2021, 1:54 PM
could easily be cast to
and modified usually.
Animesh Sahu02/09/2021, 2:11 PM
The result ofAtleast on JVM, I remembered,could easily be cast to
listOfand modified usually.
which throws runtime exceptions if you try to add or remove something. However it does let you replace items.
Vampire02/09/2021, 2:13 PM
juliocbcotta02/11/2021, 12:21 PM