From d788e182bcc2fc44973dfc4f8a8d79a12ffa2481 Mon Sep 17 00:00:00 2001 From: Henri Yandell Date: Thu, 19 Sep 2002 06:58:13 +0000 Subject: [PATCH] Patch from Fredrik Westermarck that adds the containsOnly method. I added a couple more unit tests and modified the code slightly. git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137047 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/commons/lang/StringUtils.java | 35 +++++++++++++++++-- .../apache/commons/lang/StringUtilsTest.java | 28 ++++++++++++++- 2 files changed, 59 insertions(+), 4 deletions(-) diff --git a/src/java/org/apache/commons/lang/StringUtils.java b/src/java/org/apache/commons/lang/StringUtils.java index 525b89533..e8977678d 100644 --- a/src/java/org/apache/commons/lang/StringUtils.java +++ b/src/java/org/apache/commons/lang/StringUtils.java @@ -81,7 +81,8 @@ import java.util.Iterator; * @author Ed Korthof * @author Stephen Colebourne - * @version $Id: StringUtils.java,v 1.10 2002/08/31 19:05:32 bayard Exp $ + * @author Henri Yandell * @author Stephen Colebourne * @author Ringo De Smet - * @version $Id: StringUtilsTest.java,v 1.3 2002/07/26 01:40:11 dlr Exp $ + * @author