bayard      2003/10/02 23:31:03

  Modified:    collections/src/java/org/apache/commons/collections/decorators
                        OrderedMap.java
  Log:
  more cleaning up, removing negative comments :)
  
  Revision  Changes    Path
  1.3       +2 -20     
jakarta-commons/collections/src/java/org/apache/commons/collections/decorators/OrderedMap.java
  
  Index: OrderedMap.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-commons/collections/src/java/org/apache/commons/collections/decorators/OrderedMap.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- OrderedMap.java   3 Oct 2003 06:25:03 -0000       1.2
  +++ OrderedMap.java   3 Oct 2003 06:31:03 -0000       1.3
  @@ -137,34 +137,16 @@
           return result;
       }
   
  -    //// From here on down, this becomes hell.
  -
       public Set keySet() {
  -        // TODO: calling remove on the Set needs to remove from this Map
  -        // Iterator.remove, Set.remove, removeAll retainAll, and clear 
  -
           return new KeyView( this, this.insertOrder );
  -
  -        /* OLD
  -        Set set = new java.util.HashSet( insertOrder.size() );
  -        set = OrderedSet.decorate( set );
  -        for (Iterator it = insertOrder.iterator(); it.hasNext();) {
  -            set.add( it.next() );
  -        }
  -        return set;
  -        */
       }
   
       public Collection values() {
  -        // TODO: calling remove on the Collection needs to remove from this Map
  -        // Iterator.remove, Collection.remove, removeAll, retainAll and clear
           return new ValuesView( this, this.insertOrder );
       }
   
       // QUERY: Should a change of value change insertion order?
       public Set entrySet() {
  -        // TODO: calling remove on the Set needs to remove from this Map
  -        // Iterator.remove, Set.remove, removeAll, retainAll and clear
           return new EntrySetView( this, this.insertOrder );
       }
   
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to