commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From scolebou...@apache.org
Subject cvs commit: jakarta-commons/collections/src/java/org/apache/commons/collections/map OrderedMap.java
Date Wed, 19 Nov 2003 23:57:51 GMT
scolebourne    2003/11/19 15:57:51

  Modified:    collections/src/java/org/apache/commons/collections/map
                        OrderedMap.java
  Log:
  Add mapIterator() to OrderedMapIterator until IterableMap interface created
  
  Revision  Changes    Path
  1.2       +12 -2     jakarta-commons/collections/src/java/org/apache/commons/collections/map/OrderedMap.java
  
  Index: OrderedMap.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/collections/src/java/org/apache/commons/collections/map/OrderedMap.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- OrderedMap.java	16 Nov 2003 20:35:47 -0000	1.1
  +++ OrderedMap.java	19 Nov 2003 23:57:51 -0000	1.2
  @@ -59,6 +59,7 @@
   
   import java.util.Map;
   
  +import org.apache.commons.collections.iterators.MapIterator;
   import org.apache.commons.collections.iterators.OrderedMapIterator;
   
   /**
  @@ -71,6 +72,15 @@
    * @author Stephen Colebourne
    */
   public interface OrderedMap extends Map {
  +    
  +    /**
  +     * Obtains a <code>MapIterator</code> over the map.
  +     * <p>
  +     * A map iterator is an efficient way of iterating over maps.
  +     * 
  +     * @return a map iterator
  +     */
  +    MapIterator mapIterator();
       
       /**
        * Obtains an <code>OrderedMapIterator</code> over the map.
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message