question: public Item ( String name , String typeId ) { if ( name != null ) { this . name = name . replaceAll ( "\\s" , " " ) ; } if ( typeId != null && typeId . length ( ) > 0 ) { this . typeId = Integer . valueOf ( typeId ) ; } itemMap = new TreeMap < Integer , IItem > ( ) ; }
target:  Creates an item with the given name and type id. Creates an empty tree map to store items