01: /* DDSteps - Data Driven JUnit Test Steps
02: * Copyright (C) 2006 Jayway AB
03: *
04: * This library is free software; you can redistribute it and/or
05: * modify it under the terms of the GNU Lesser General Public
06: * License version 2.1 as published by the Free Software Foundation.
07: *
08: * This library is distributed in the hope that it will be useful,
09: * but WITHOUT ANY WARRANTY; without even the implied warranty of
10: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11: * Lesser General Public License for more details.
12: *
13: * You should have received a copy of the GNU Lesser General Public
14: * License along with this library; if not, visit
15: * http://www.opensource.org/licenses/lgpl-license.php
16: */
17: package org.ddsteps.util;
18:
19: /**
20: * @author adamskogman
21: *
22: */
23: public class StringUtils extends org.apache.commons.lang.StringUtils {
24:
25: public static boolean containsNotBlank(String[] strings) {
26:
27: if (strings == null || strings.length <= 0) {
28: return false;
29: }
30:
31: for (int i = 0; i < strings.length; i++) {
32: if (isNotBlank(strings[i]))
33: return true;
34: }
35:
36: return false;
37: }
38:
39: }
|