gs-collections

ImmutableList does not extend List?

对着背影说爱祢 提交于 2019-12-21 12:59:44
问题 When I dig into the gs-collection source for ImmutableList , it does not extends java.util.List . However the class javadoc mentioned that All ImmutableList implementations must implement the java.util.List . Why must ask the implementation to implement java.util.List and not the ImmutableList itself to extend java.util.List ? 回答1: Why doesn't ImmutableList extend List ? ImmutableCollection doesn't extend java.util.Collection (and ImmutableList doesn't extend java.util.List ) because

ImmutableList does not extend List?

こ雲淡風輕ζ 提交于 2019-12-21 12:59:41
问题 When I dig into the gs-collection source for ImmutableList , it does not extends java.util.List . However the class javadoc mentioned that All ImmutableList implementations must implement the java.util.List . Why must ask the implementation to implement java.util.List and not the ImmutableList itself to extend java.util.List ? 回答1: Why doesn't ImmutableList extend List ? ImmutableCollection doesn't extend java.util.Collection (and ImmutableList doesn't extend java.util.List ) because

looking for Sorted Heap & Concurrent Queue in gs-collections library

别等时光非礼了梦想. 提交于 2019-12-12 22:10:54
问题 Three questions: I was told the gs-collections library contains queue implementations but I can't find them in http://www.goldmansachs.com/gs-collections/javadoc/5.1.0/. do they exist? if so, which classes should I look at? Likewise for a sorted heap class (Not so much of a question) Does anyone have any experience with the gs-collections library? It's totally new to me, so if you have any experience and advice regarding which tasks it's particular good at please share Thanks in advance 回答1:

ImmutableList does not extend List?

廉价感情. 提交于 2019-12-04 05:33:18
When I dig into the gs-collection source for ImmutableList , it does not extends java.util.List . However the class javadoc mentioned that All ImmutableList implementations must implement the java.util.List . Why must ask the implementation to implement java.util.List and not the ImmutableList itself to extend java.util.List ? Why doesn't ImmutableList extend List ? ImmutableCollection doesn't extend java.util.Collection (and ImmutableList doesn't extend java.util.List ) because Collection has mutating methods like add() and remove() . If immutable collections had these methods, they would