Back to project page OBS-Translation-App.
The source code is released under:
MIT License
If you think the Android project OBS-Translation-App listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package org.door43.obs.mta.util; //from w w w .j av a2s . c om /** * Utility methods for String object. */ public class StringUtils { /* CONSTANTS */ /* FIELDS */ /* CONSTRUCTORS */ /* METHODS */ /** * Equivalent of org.apache.commons.lang.StringUtils#isBlank(String str) method. * @param text * @return True if given text is null or has no visible content. */ public static boolean isBlank(String text) { if (text == null || text.trim().length() == 0) { return true; } return false; } /* GETTERS AND SETTERS */ /* OBJECT METHODS */ }