commonutilities.java

来自「java 调用windows的api」· Java 代码 · 共 38 行

JAVA
38
字号
/*
 * CommonUtilities.java -
 *
 * This file is part of the Jawin Project: http://jawinproject.sourceforge.net/
 * 
 * Please consult the LICENSE file in the project root directory,
 * or at the project site before using this software.
 */

/* $Id: CommonUtilities.java,v 1.1 2004/06/16 19:46:52 arosii_moa Exp $ */

package org.jawin.browser.util;

/**
 * Utility class containing some standard static helper methods used
 * occasionaly in JTB. 
 *
 * @version     $Revision: 1.1 $
 * @author      Morten Andersen, arosii_moa (at) users.sourceforge.net
 */
public class CommonUtilities {

	/**
	 * private constructor - to never be instantiated - only static helper methods in this class.
	 */
	private CommonUtilities() {
	}

	/**
	 * @param s the string to test.
	 * @return return false if s is null or an empty string (after trimming).
	 */
	public static boolean isEmpty(String s) {
		return ((s == null) || (s.trim().length() == 0));
	}

}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?