*/
    private HashNode<K, V>[] resize() {
        @SuppressWarnings("unchecked")
        HashNode<K, V>[] newContents = (HashNode<K, V>[]) 
                new HashNode[this.map.length * 2];
        
        for (int i = 0; i < this.map.length; i++) {
            if (this.map[i] != null && this.map[i].getKey() != null) {
                
                int index = this.map[i].getKey().hashCode() 
                        % newContents.length;
                        
                while (newContents[index] != null) {
                    index = (index + 1) % newContents.length;
                }
                
                newContents[index] = this.map[i];
            }
        }
            
        return newContents;
    }