# Class: com.pnfsoftware.jeb.util.collect.IntMap

A memory\-efficient map \(dictionary\) of `int` primitives to `int` primitives. Additions, retrieval, updates are supported. Deletes are not supported. 

 All ints are valid keys and values. The value 0, however, may indicate an empty entry. 

 Note: [#hashCode()](#hashCode()) and [#equals(Object)](#equals(Object)) are not overridden.

## Constructor: IntMap

Description: Create an empty integer map.

## Method: clear

Description: Remove all entries.

## Method: containsKey
- parameter: `key`, type: `int`
- return type: `boolean`

Description: Determine if the key maps to an entry in the map.
parameter: key: key
return: true if the key is present

## Method: get
- parameter: `key`, type: `int`
- return type: `int`

Description: Retrieve a value associated to a key.
parameter: key: key
return: the value; 0 may indicate that the entry was not present in the map

## Method: isEmpty
- return type: `boolean`

Description: 
return: true if the map has no entries

## Method: put
- parameter: `key`, type: `int`
- parameter: `val`, type: `int`
- return type: `int`

Description: Add an entry.
parameter: key: key
parameter: val: value
return: the previous value \(0 if there was none associated with the key\)

## Method: size
- return type: `int`

Description: 
return: number of entries in the map

## Method: toString
- return type: `java.lang.String`


