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-sandbox/primitives/src/java/org/apache/commons/primitive/iterator PrimitiveIterator.java
Date Sat, 20 Sep 2003 23:49:58 GMT
scolebourne    2003/09/20 16:49:58

  Modified:    primitives/src/java/org/apache/commons/primitive
                        PrimitiveCollectable.java
               primitives/src/java/org/apache/commons/primitive/iterator
                        PrimitiveIterator.java
  Log:
  Change interface hierarchy
  
  Revision  Changes    Path
  1.2       +9 -2      jakarta-commons-sandbox/primitives/src/java/org/apache/commons/primitive/PrimitiveCollectable.java
  
  Index: PrimitiveCollectable.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/primitives/src/java/org/apache/commons/primitive/PrimitiveCollectable.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- PrimitiveCollectable.java	1 Sep 2003 23:56:05 -0000	1.1
  +++ PrimitiveCollectable.java	20 Sep 2003 23:49:58 -0000	1.2
  @@ -60,7 +60,7 @@
    * @version $Id$
    * @since 1.0
    */
  -public interface PrimitiveCollectable extends PrimitiveCloneable {
  +public interface PrimitiveCollectable extends PrimitiveCloneable, PrimitiveIsModifiable
{
   
       // Mandatory operations
       //-----------------------------------------------------------------------
  @@ -90,6 +90,13 @@
        * UnsupportedOperationException.
        */
       void optimize();
  +
  +    /**
  +     * Clones the object.
  +     * 
  +     * @return a newly cloned object
  +     */
  +    public Object clone();
   
       /**
        * Checks whether the collection/map can currently be modified.
  
  
  
  1.3       +5 -2      jakarta-commons-sandbox/primitives/src/java/org/apache/commons/primitive/iterator/PrimitiveIterator.java
  
  Index: PrimitiveIterator.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/primitives/src/java/org/apache/commons/primitive/iterator/PrimitiveIterator.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- PrimitiveIterator.java	7 Sep 2003 23:52:10 -0000	1.2
  +++ PrimitiveIterator.java	20 Sep 2003 23:49:58 -0000	1.3
  @@ -55,6 +55,9 @@
   
   import java.util.Iterator;
   
  +import org.apache.commons.primitive.PrimitiveIsModifiable;
  +import org.apache.commons.primitive.PrimitiveResetable;
  +
   /**
    * Base interface for all primitive iterator interfaces.
    * 
  @@ -62,6 +65,6 @@
    * @version $Id$
    * @since 1.0
    */
  -public interface PrimitiveIterator extends Iterator {
  +public interface PrimitiveIterator extends Iterator, PrimitiveIsModifiable, PrimitiveResetable
{
   
   }
  
  
  

Mime
View raw message