Here you can find the source of assertNotBlank(final String... strings)
Parameter | Description |
---|---|
strings | - The list of String to check. |
true
if no String is null or blank, false
otherwise.
public static boolean assertNotBlank(final String... strings)
//package com.java2s; //License from project: Open Source License public class Main { /**/* w w w. ja v a 2s.c om*/ * @param strings - The list of String to check. * @return <code>true</code> if no <tt>String</tt> is null or blank, * <code>false</code> otherwise. */ public static boolean assertNotBlank(final String... strings) { for (String s : strings) { if (s == null || s.trim().isEmpty()) return false; } return true; } }