Merging from -r468106:814127 of collections_jdk5_branch - namely where this code was generified; mostly in r738956.

Also see the following revisions:

    ------------------------------------------------------------------------
    r740150 | mbenson | 2009-02-02 15:24:00 -0800 (Mon, 02 Feb 2009) | 1 line
    
    make all [collections] maps implement IterableMap
    ------------------------------------------------------------------------


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@815070 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Henri Yandell 2009-09-15 05:55:51 +00:00
parent 97850dae19
commit a2811d7b90
1 changed files with 38 additions and 0 deletions

View File

@ -0,0 +1,38 @@
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.commons.collections.map;
import org.apache.commons.collections.IterableMap;
import org.apache.commons.collections.MapIterator;
/**
* Provide a basic {@link IterableMap} implementation.
* @since Commons Collections 5
* @TODO fix version
* @version $Revision$ $Date$
*
* @author Matt Benson
*/
public abstract class AbstractIterableMap<K, V> implements IterableMap<K, V> {
/**
* {@inheritDoc}
*/
public MapIterator<K, V> mapIterator() {
return new EntrySetToMapIteratorAdapter<K, V>(entrySet());
}
}