From 5cb1ae60249745bb9b9f019b58eea5132abf1032 Mon Sep 17 00:00:00 2001
From: Benedikt Ritter
Date: Sat, 27 Dec 2014 16:29:28 +0000
Subject: [PATCH] Add examples for containsAny(CharSequence, CharSequence...)
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1648066 13f79535-47bb-0310-9956-ffa450edef68
---
.../java/org/apache/commons/lang3/StringUtils.java | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/src/main/java/org/apache/commons/lang3/StringUtils.java b/src/main/java/org/apache/commons/lang3/StringUtils.java
index d465e4d98..01e0d3beb 100644
--- a/src/main/java/org/apache/commons/lang3/StringUtils.java
+++ b/src/main/java/org/apache/commons/lang3/StringUtils.java
@@ -1677,6 +1677,16 @@ public class StringUtils {
* A {@code null} CharSequence will return {@code false}. A {@code null} or zero
* length search array will return {@code false}.
*
+ *
+ *
+ * StringUtils.containsAny(null, *) = false
+ * StringUtils.containsAny("", *) = false
+ * StringUtils.containsAny(*, null) = false
+ * StringUtils.containsAny(*, []) = false
+ * StringUtils.containsAny("abcd", "ab", "cd") = false
+ * StringUtils.containsAny("abc", "d", "abc") = true
+ *
+ *
*
* @param cs The CharSequence to check, may be null
* @param searchCharSequences The array of CharSequences to search for, may be null