It is currently 11 Sep 2025, 15:58
   
Text Size

How is the Google collection library better?

Post MTG Forge Related Programming Questions Here

Moderators: timmermac, Blacksmith, KrazyTheFox, Agetian, friarsol, CCGHQ Admins

How is the Google collection library better?

Postby mtgrares » 25 Jan 2010, 19:40

How is Google's Collection code better than the standard collections?
mtgrares
DEVELOPER
 
Posts: 1352
Joined: 08 Sep 2008, 22:10
Has thanked: 3 times
Been thanked: 12 times

Re: How is the Google collection library better?

Postby silly freak » 25 Jan 2010, 19:49

google collections is just some utility code built ontop of standard java collections. one of the features, which is why we use it, is the easy creation of "soft maps", that is maps whose values may be discarded if there's not enough memory.
___

where's the "trust me, that will work!" switch for the compiler?
Laterna Magica - blog, forum, project, 2010/09/06 release!
silly freak
DEVELOPER
 
Posts: 598
Joined: 26 Mar 2009, 07:18
Location: Vienna, Austria
Has thanked: 93 times
Been thanked: 25 times

Re: How is the Google collection library better?

Postby DennisBergkamp » 25 Jan 2010, 19:51

And, http://java.dzone.com/articles/introduction-google

gives some good reasons to use it :)
User avatar
DennisBergkamp
AI Programmer
 
Posts: 2602
Joined: 09 Sep 2008, 15:46
Has thanked: 0 time
Been thanked: 0 time

Re: How is the Google collection library better?

Postby mtgrares » 25 Jan 2010, 20:01

Thanks.

Java seems to have hundreds (thousands) of libraries like Google Collections to choose from, how do you choose which ones to use?
mtgrares
DEVELOPER
 
Posts: 1352
Joined: 08 Sep 2008, 22:10
Has thanked: 3 times
Been thanked: 12 times

Re: How is the Google collection library better?

Postby Huggybaby » 26 Jan 2010, 03:35

First you start with what Snacko uses... :lol:
User avatar
Huggybaby
Administrator
 
Posts: 3228
Joined: 15 Jan 2006, 19:44
Location: Finally out of Atlanta
Has thanked: 753 times
Been thanked: 601 times

Re: How is the Google collection library better?

Postby mtgrares » 28 Jan 2010, 20:49

At least it is a start, ha.
mtgrares
DEVELOPER
 
Posts: 1352
Joined: 08 Sep 2008, 22:10
Has thanked: 3 times
Been thanked: 12 times


Return to Developer's Corner

Who is online

Users browsing this forum: No registered users and 20 guests

Main Menu

User Menu

Our Partners


Who is online

In total there are 20 users online :: 0 registered, 0 hidden and 20 guests (based on users active over the past 10 minutes)
Most users ever online was 7967 on 09 Sep 2025, 23:08

Users browsing this forum: No registered users and 20 guests

Login Form