From fc65ecbb813db74373ca045e83e1f1dc99476066 Mon Sep 17 00:00:00 2001 From: Rodney Waldhoff Date: Tue, 7 Jan 2003 01:34:07 +0000 Subject: [PATCH] add toString git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130912 13f79535-47bb-0310-9956-ffa450edef68 --- .../primitives/CollectionIntCollection.java | 12 ++++++++---- .../primitives/IntCollectionCollection.java | 12 ++++++++---- 2 files changed, 16 insertions(+), 8 deletions(-) diff --git a/src/java/org/apache/commons/collections/primitives/CollectionIntCollection.java b/src/java/org/apache/commons/collections/primitives/CollectionIntCollection.java index 50f4fc558..bb94a0d3a 100644 --- a/src/java/org/apache/commons/collections/primitives/CollectionIntCollection.java +++ b/src/java/org/apache/commons/collections/primitives/CollectionIntCollection.java @@ -1,7 +1,7 @@ /* - * $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/primitives/Attic/CollectionIntCollection.java,v 1.2 2003/01/07 00:59:51 rwaldhoff Exp $ - * $Revision: 1.2 $ - * $Date: 2003/01/07 00:59:51 $ + * $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/primitives/Attic/CollectionIntCollection.java,v 1.3 2003/01/07 01:34:07 rwaldhoff Exp $ + * $Revision: 1.3 $ + * $Date: 2003/01/07 01:34:07 $ * * ==================================================================== * @@ -68,7 +68,7 @@ import java.util.Collection; * {@link java.util.Collection Collection} to the * {@link IntCollection} interface. * - * @version $Revision: 1.2 $ $Date: 2003/01/07 00:59:51 $ + * @version $Revision: 1.3 $ $Date: 2003/01/07 01:34:07 $ * @author Rodney Waldhoff */ public class CollectionIntCollection implements IntCollection { @@ -108,6 +108,10 @@ public class CollectionIntCollection implements IntCollection { return _collection.hashCode(); } + public String toString() { + return _collection.toString(); + } + public boolean isEmpty() { return _collection.isEmpty(); } diff --git a/src/java/org/apache/commons/collections/primitives/IntCollectionCollection.java b/src/java/org/apache/commons/collections/primitives/IntCollectionCollection.java index 5a263b046..4c7b555b1 100644 --- a/src/java/org/apache/commons/collections/primitives/IntCollectionCollection.java +++ b/src/java/org/apache/commons/collections/primitives/IntCollectionCollection.java @@ -1,7 +1,7 @@ /* - * $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/primitives/Attic/IntCollectionCollection.java,v 1.3 2003/01/07 00:59:51 rwaldhoff Exp $ - * $Revision: 1.3 $ - * $Date: 2003/01/07 00:59:51 $ + * $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/primitives/Attic/IntCollectionCollection.java,v 1.4 2003/01/07 01:34:07 rwaldhoff Exp $ + * $Revision: 1.4 $ + * $Date: 2003/01/07 01:34:07 $ * * ==================================================================== * @@ -69,7 +69,7 @@ import java.util.Iterator; * Adapts an {@link IntCollection} to the * {@link java.util.Collection Collection} interface. * - * @version $Revision: 1.3 $ $Date: 2003/01/07 00:59:51 $ + * @version $Revision: 1.4 $ $Date: 2003/01/07 01:34:07 $ * @author Rodney Waldhoff */ public class IntCollectionCollection implements Collection { @@ -117,6 +117,10 @@ public class IntCollectionCollection implements Collection { return _collection.hashCode(); } + public String toString() { + return _collection.toString(); + } + public boolean isEmpty() { return _collection.isEmpty(); }