📄 commonutilities.java
字号:
/*
* 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -