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 Bag.java
Date Sun, 11 May 2003 14:14:58 GMT
scolebourne    2003/05/11 07:14:58

  Modified:    collections/src/java/org/apache/commons/collections Bag.java
  Log:
  Remove uneccessary public statements from interface
  
  Revision  Changes    Path
  1.9       +13 -13    jakarta-commons/collections/src/java/org/apache/commons/collections/Bag.java
  
  Index: Bag.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/collections/src/java/org/apache/commons/collections/Bag.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- Bag.java	11 May 2003 12:13:58 -0000	1.8
  +++ Bag.java	11 May 2003 14:14:58 -0000	1.9
  @@ -92,7 +92,7 @@
       * @param object  the object to search for
       * @return the number of occurrences of the object, zero if not found
       */
  -   public int getCount(Object object);
  +   int getCount(Object object);
   
      /**
       * <i>(Violation)</i>
  @@ -111,7 +111,7 @@
       * @param object  the object to add
       * @return <code>true</code> if the object was not already in the <code>uniqueSet</code>
       */
  -   public boolean add(Object object);
  +   boolean add(Object object);
   
      /**
       * Adds <code>nCopies</code> copies of the specified object to the Bag.
  @@ -124,7 +124,7 @@
       * @param nCopies  the number of copies to add
       * @return <code>true</code> if the object was not already in the <code>uniqueSet</code>
       */
  -   public boolean add(Object object, int nCopies);
  +   boolean add(Object object, int nCopies);
   
      /**
       * <i>(Violation)</i>
  @@ -140,7 +140,7 @@
       *
       * @return <code>true</code> if this call changed the collection
       */
  -   public boolean remove(Object object);
  +   boolean remove(Object object);
   
      /**
       * Removes <code>nCopies</code> copies of the specified object from the
Bag.
  @@ -152,7 +152,7 @@
       * @param nCopies  the number of copies to remove
       * @return <code>true</code> if this call changed the collection
       */
  -   public boolean remove(Object object, int nCopies);
  +   boolean remove(Object object, int nCopies);
   
      /**
       * Returns a {@link Set} of unique elements in the Bag.
  @@ -161,14 +161,14 @@
       * 
       * @return the Set of unique Bag elements
       */
  -   public Set uniqueSet();
  +   Set uniqueSet();
   
      /**
       * Returns the total number of items in the bag across all types.
       * 
       * @return the total size of the Bag
       */
  -   public int size();
  +   int size();
   
      /**
       * <i>(Violation)</i>
  @@ -187,7 +187,7 @@
       * @param coll  the collection to check against
       * @return <code>true</code> if the Bag contains all the collection
       */
  -   public boolean containsAll(Collection coll);
  +   boolean containsAll(Collection coll);
   
      /**
       * <i>(Violation)</i>
  @@ -206,7 +206,7 @@
       * @param coll  the collection to remove
       * @return <code>true</code> if this call changed the collection
       */
  -   public boolean removeAll(Collection coll);
  +   boolean removeAll(Collection coll);
   
      /**
       * <i>(Violation)</i>
  @@ -228,7 +228,7 @@
       * @param coll  the collection to retain
       * @return <code>true</code> if this call changed the collection
       */
  -   public boolean retainAll(Collection coll);
  +   boolean retainAll(Collection coll);
   
      /**
       * Returns an {@link Iterator} over the entire set of members,
  @@ -237,6 +237,6 @@
       * 
       * @return iterator over all elements in the Bag
       */
  -   public Iterator iterator();
  +   Iterator iterator();
      
   }
  
  
  

---------------------------------------------------------------------
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