public Value get ( Object key ) { /* If the length is under and we are asking for the key, then just look for the key. Don't build the map. */ if ( map == null && items . length < 20 ) { for ( Object item : items ) { MapItemValue miv = ( MapItemValue ) item ; if ( key . equals ( miv . name . toValue ( ) ) ) { return miv . value ; } } return null ; } else { if ( map == null ) buildIfNeededMap ( ) ; return map . get ( key ) ; } }
Get the items for the key .