dlr         01/08/24 12:17:40

  Modified:    util/src/java/org/apache/commons/util CollectionsUtils.java
  Log:
  Removed EnumerationIterator -- I find it funny that I just wrote a
  superset of this class to be used by BufferCache without knowing about
  it, or the Collections version of it.  In my opinion, all dependent
  classes should be moved to Collections.
  
  Revision  Changes    Path
  1.2       +1 -32     
jakarta-commons-sandbox/util/src/java/org/apache/commons/util/CollectionsUtils.java
  
  Index: CollectionsUtils.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-commons-sandbox/util/src/java/org/apache/commons/util/CollectionsUtils.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -u -r1.1 -r1.2
  --- CollectionsUtils.java     2001/08/24 19:06:54     1.1
  +++ CollectionsUtils.java     2001/08/24 19:17:40     1.2
  @@ -66,7 +66,7 @@
    * beyond the duty of java.util's Collection API.
    *
    * @author [EMAIL PROTECTED]
  - * @version $Id: CollectionsUtils.java,v 1.1 2001/08/24 19:06:54 bayard Exp $
  + * @version $Id: CollectionsUtils.java,v 1.2 2001/08/24 19:17:40 dlr Exp $
    */
   final public class CollectionsUtils {
   
  @@ -190,36 +190,5 @@
           }
       }
   
  -
  -}
  -
  -
  -
  -/**
  - * A class which allows an Enumeration to be turned into an Iterator.
  - * Needs removing as commons.collections has a similar one.
  - *
  - * @author [EMAIL PROTECTED]
  - * @version $Id: CollectionsUtils.java,v 1.1 2001/08/24 19:06:54 bayard Exp $
  - */
  -class EnumerationIterator implements Iterator {
  -
  -    private Enumeration wrappedEnum;
  -
  -    public EnumerationIterator(Enumeration enum) {
  -        wrappedEnum = enum;
  -    } 
  -
  -    public Object next() {
  -        return wrappedEnum.nextElement();
  -    }
  -    
  -    public boolean hasNext() {
  -        return wrappedEnum.hasMoreElements();
  -    }
  -    
  -    public void remove() {
  -        throw new UnsupportedOperationException();
  -    }
   
   }
  
  
  

Reply via email to