Questions tagged [gs-collections]

GS Collections is a collections framework for Java. It has JDK-compatible List, Set and Map implementations with a rich API and set of utility classes that work with any JDK compatible Collections, Arrays, Maps or Strings. The iteration protocol was inspired by the Smalltalk collection framework.

GS Collections is a collections framework for Java. It has JDK-compatible List, Set and Map implementations with a rich API and set of utility classes that work with any JDK compatible Collections, Arrays, Maps or Strings. The iteration protocol was inspired by the Smalltalk collection framework.

5 questions
6
votes
1 answer

ImmutableList does not extend List?

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…
Wins
  • 3,420
  • 4
  • 36
  • 70
3
votes
1 answer

Why does GSC MutableListMultimap.get(K key) method return a "view" instead of a mutable collection?

While doing a get() on a MutableListMultimap, the list being returned is made unmodifiable (referring to code in AbstractMutableMultimap#get() ). What is the thought process behind this ? If the collection being used as value in Multimap is of type…
Prateek
  • 417
  • 6
  • 9
2
votes
1 answer

javadoc Illegal package name

I am trying to build this project https://github.com/goldmansachs/gs-collections . Built with: ant -buildfile build.xml However I get the following error: [javadoc] javadoc: error - Illegal package name:…
Bionix1441
  • 2,135
  • 1
  • 30
  • 65
2
votes
2 answers

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

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…
Alex Averbuch
  • 3,245
  • 5
  • 33
  • 44
2
votes
1 answer

Distinct objects from property GS collections Java

Assume that I have a list (GS Collections) of Customers with two properties: id and age, I want apply a distinct filter to the property id FastList customers ... customers.distinct( ) //Hey here there's no overload to provide a custom…
Nestor Hernandez Loli
  • 1,412
  • 3
  • 21
  • 26