Collections Refueled by Stuart Marks

  Рет қаралды 15,624

Devoxx

Devoxx

Күн бұрын

Пікірлер: 13
@SourabhBhat
@SourabhBhat 7 жыл бұрын
A very nice and concise presentation!! Thanks.
@kokavamsikrishna3933
@kokavamsikrishna3933 5 жыл бұрын
Awesome, thanks Stuart mark's,
@SirWolf2018
@SirWolf2018 7 жыл бұрын
For the "remove(str, i)" example at 18:58, "k" is a typo, correct is: "str", also, ""v" is a typo, correct is: "i". And then for even more understandability, rename "k1" and 'x' above to "k".
@Bruno-fe4tp
@Bruno-fe4tp 6 жыл бұрын
thanks
@FenrirTheGray
@FenrirTheGray 7 жыл бұрын
The Hodor stickers xD
@AlanDarkworld
@AlanDarkworld 7 жыл бұрын
Will there be a variant of "List.of(...)" that provides a regular, mutable ArrayList? Immutability is nice and dandy, but sometimes you just want a plain old list. Or will I have to stick with Guava's "Lists.newArrayList()"?
@Omega3131
@Omega3131 7 жыл бұрын
Looks like there's no mutable equivalent according to the API.
@drewcaster
@drewcaster 7 жыл бұрын
Arrays.asList(...) or Stream.of(...) or Arrays.stream(...)
@arnepeeters7663
@arnepeeters7663 3 жыл бұрын
@@drewcaster Arrays.asList returns an immutable List! You need new ArrayList(Arrays.asList(T... args)) if you actually need a regular mutable ArrayList (without streaming) as OP asked.
@ipuluforu
@ipuluforu 7 жыл бұрын
Hi, referring the video at 9:33 I tried the below code. List list = Arrays.asList(1,2,3,4,5,6,7,8,9,10); list.removeIf(n -> n==2); However it resulted in the below error. Exception in thread "main" java.lang.UnsupportedOperationException at java.util.AbstractList.remove(AbstractList.java:161) at java.util.AbstractList$Itr.remove(AbstractList.java:374) at java.util.Collection.removeIf(Collection.java:415) Can anyone please tell me what I missed actually?
@FrancoisGreen
@FrancoisGreen 7 жыл бұрын
Here is an answer on Stack Overflow. stackoverflow.com/questions/7885573/remove-on-list-created-by-arrays-aslist-throws-unsupportedoperationexception
@ipuluforu
@ipuluforu 7 жыл бұрын
Cool.... Thanks Francois Green
@ashb001
@ashb001 4 жыл бұрын
15:25 Mark makes a small mistake calling it a BiFunction. The foreach actually takes a BiConsumer. That is, consumes two arguments and returns nothing.
Thinking In Parallel by Stuart Marks and Brian Goetz
1:00:04
Java Streams: Beyond The Basics
49:21
Jfokus
Рет қаралды 72 М.
Touching Act of Kindness Brings Hope to the Homeless #shorts
00:18
Fabiosa Best Lifehacks
Рет қаралды 18 МЛН
Or is Harriet Quinn good? #cosplay#joker #Harriet Quinn
00:20
佐助与鸣人
Рет қаралды 48 МЛН
Now it’s my turn ! 😂🥹 @danilisboom  #tiktok #elsarca
00:20
Elsa Arca
Рет қаралды 12 МЛН
Effective Java, Third Edition Keepin' it Effective (J. Bloch)
45:58
Creator of git, Linus Torvalds Presents the Fundamentals of git
1:10:15
Developers Alliance
Рет қаралды 89 М.
Mastering Chaos - A Netflix Guide to Microservices
53:14
InfoQ
Рет қаралды 2,2 МЛН
Concurrency Concepts in Java by Douglas Hawkins
44:22
Devoxx Poland
Рет қаралды 50 М.
Touching Act of Kindness Brings Hope to the Homeless #shorts
00:18
Fabiosa Best Lifehacks
Рет қаралды 18 МЛН