Mercurial > projects > dwt-addons
view dwtx/dwtxhelper/JHashMap.d @ 106:8ab6fb387666
more Collection impl
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Thu, 07 Aug 2008 16:03:56 +0200 |
parents | 115258985f10 |
children |
line wrap: on
line source
module dwtx.dwtxhelper.JHashMap; import tango.util.collection.HashMap; import tango.core.Traits; class JHashMapT(K,V) : HashMap!(K,V) { this(){ super(); } static if( is(V==class) || is(V==interface) || isDynamicArrayType!(V) ){ public V find( K key ){ if( containsKey(key) ){ return get(key); } return null; } } } alias JHashMapT!(Object,Object) JHashMap;