From subsecret
Jump to: navigation, search
No edit summary
Line 18: Line 18:
|Object
|Object
|-
|-
|ColtIntIntHashMap
|Int
|Int
|-
|ColtIntIntHashMap
|Double
|Int
|-
|ColtLongHashMap
|Int
|Int
|-
|}
|}



Revision as of 12:51, 14 June 2013

Extension of Colt HashMap using Generics for storage of Objects

This is based on part of the code from Colt Project: http://acs.lbl.gov/software/colt/ The Colt Project is made before generics was introduced in Java. This means that the HashMap from Colt Project cannot be used as a drop-in replacement for Java's HashMap.

This version contains only the HashMap part of Colt Project (version 1.2.0) and adds the support for generics, so that it can now be used as a drop-in replacement for Java's HashHamp

Download

abc

Usage

Class Key type Value type
ColtIntHashMap Int Object
ColtIntIntHashMap Int Int
ColtIntIntHashMap Double Int
ColtLongHashMap Int Int

abc

Benchmark

abc