亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? util.java

?? java覆蓋率測試工具
?? JAVA
字號:
/* ***** BEGIN LICENSE BLOCK *****
 * Version: MPL 1.1/GPL 2.0/LGPL 2.1
 *
 * The contents of this file are subject to the Mozilla Public License Version
 * 1.1 (the "License"); you may not use this file except in compliance with
 * the License. You may obtain a copy of the License at
 * http://www.mozilla.org/MPL/
 *
 * Software distributed under the License is distributed on an "AS IS" basis,
 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
 * for the specific language governing rights and limitations under the
 * License.
 *
 * The Original Code is the reusable ccl java library
 * (http://www.kclee.com/clemens/java/ccl/).
 *
 * The Initial Developer of the Original Code is
 * Chr. Clemens Lee.
 * Portions created by Chr. Clemens Lee are Copyright (C) 2002
 * Chr. Clemens Lee. All Rights Reserved.
 *
 * Contributor(s): Chr. Clemens Lee <clemens@kclee.com>
 *
 * Alternatively, the contents of this file may be used under the terms of
 * either the GNU General Public License Version 2 or later (the "GPL"), or
 * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
 * in which case the provisions of the GPL or the LGPL are applicable instead
 * of those above. If you wish to allow use of your version of this file only
 * under the terms of either the GPL or the LGPL, and not to allow others to
 * use your version of this file under the terms of the MPL, indicate your
 * decision by deleting the provisions above and replace them with the notice
 * and other provisions required by the GPL or the LGPL. If you do not delete
 * the provisions above, a recipient may use your version of this file under
 * the terms of any one of the MPL, the GPL or the LGPL.
 *
 * ***** END LICENSE BLOCK ***** */

package net.sourceforge.cobertura.javancss;

import java.util.Vector;

/**
 * A general purpose class with a variety of support and convenience methods.
 *
 * <p> There are different groups of methods in this class:
 * <br>
 * <br><a href="#print(char)">print methods</a> - convenience methods for System.out.print etc. that additionally make sure output is gets flushed immediately.
 * <br><a href="#isEmpty(java.lang.String)">string methods</a>
 * <br><a href="#concat(java.util.Vector)">string/vector converter methods</a>
 * <br><a href="#getConstantObject()">miscellaneous methods</a>
 * <p>
 *
 * Some basic but none the less the most used methods by myself are:<br>
 * - {@link #isEmpty(java.lang.String) isEmpty}<br>
 * - {@link #stringToLines(java.lang.String) stringToLines}<br>
 * - {@link #sleep(int) sleep}<br>
 * <p>
 *
 * @author <a href="http://www.kclee.com/clemens/">
 *         Chr. Clemens Lee</a>
 *         &lt;<a href="mailto:clemens@kclee.com">
 *         clemens@kclee.com
 *         </a>>
 */
public class Util
{

	public static final Object CONSTANT_OBJECT = new Object();

	/**
	 * This is an utility class, there is (should be) no need
	 * for an instance of this class.
	 */
	private Util()
	{
		super();
	}

	// -----------------------------------------------------
	// debug methods and assertion stuff
	// -----------------------------------------------------

	/**
	 * panicIf <=> not assert. Throws ApplicationException if true.
	 * It's not necessary to catch this exception.
	 */
	static void panicIf(boolean bPanic_)
	{
		if (bPanic_)
		{
			throw (new RuntimeException());
		}
	}

	/**
	 * panicIf <=> not assert. Throws ApplicationException if true.
	 * It's not necessary to catch this exception.
	 *
	 * @param sMessage_ The error message for the Exception.
	 */
	static void panicIf(boolean bPanic_, String sMessage_)
	{
		if (bPanic_)
		{
			throw (new RuntimeException(sMessage_));
		}
	}

	/**
	 * Tests, if a given String equals null or "".
	 */
	public static boolean isEmpty(String sTest_)
	{
		if (sTest_ == null || sTest_.equals(""))
		{
			return true;
		}

		return false;
	}

	/**
	 * This function takes a String and separates it into different
	 * lines. The last line does not need to have a separator character.
	 *
	 * @param lines_   The number of lines that should be extracted.
	 *                 Zero if maximum number of lines is requested.
	 * @param cCutter_ The character that separates pString_ into
	 *                 different lines
	 *
	 * @return         The single lines do not contain the cCutter_
	 *                 character at the end.
	 */
	private static Vector stringToLines(int lines_, String pString_, char cCutter_)
	{
		int maxLines = Integer.MAX_VALUE;
		if (lines_ > 0)
		{
			maxLines = lines_;
		}

		Vector vRetVal = new Vector();
		if (pString_ == null)
		{
			return vRetVal;
		}

		int startIndex = 0;
		for (; maxLines > 0; maxLines--)
		{
			int endIndex = pString_.indexOf(cCutter_, startIndex);
			if (endIndex == -1)
			{
				if (startIndex < pString_.length())
				{
					endIndex = pString_.length();
				}
				else
				{
					break;
				}
			}
			String sLine = pString_.substring(startIndex, endIndex);
			vRetVal.addElement(sLine);
			startIndex = endIndex + 1;
		}

		return vRetVal;
	}

	/**
	 * This function takes a String and separates it into different
	 * lines. The last line does not need to have a separator character.
	 *
	 * @param cCutter_ The character that separates pString_ into
	 *                 different lines
	 *
	 * @return The single lines do not contain the cCutter_ character
	 *         at the end.
	 */
	private static Vector stringToLines(String pString_, char cCutter_)
	{
		return stringToLines(0, pString_, cCutter_);
	}

	/**
	 * This function takes a String and separates it into different
	 * lines. The last line does not need to have a '\n'. The function
	 * can't handle dos carriage returns.
	 *
	 * @return The single lines do not contain the '\n' character
	 *         at the end.
	 */
	public static Vector stringToLines(String pString_)
	{
		return stringToLines(pString_, '\n');
	}

	/**
	 * Current thread sleeps in seconds.
	 */
	private static void sleep(int seconds_)
	{
		try
		{
			Thread.sleep(seconds_ * 1000);
		}
		catch (Exception pException)
		{
		}
	}

}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
精品少妇一区二区三区视频免付费| 日本不卡123| 亚洲成人免费在线| 国产精品综合二区| 欧美日韩精品欧美日韩精品一| 亚洲精品一区二区在线观看| 亚洲成人免费在线观看| www.视频一区| 久久婷婷成人综合色| 日韩精品福利网| 成人丝袜18视频在线观看| 91精品国产综合久久久久| 亚洲男人的天堂在线观看| 国产不卡一区视频| 欧美电影免费观看高清完整版| 亚洲欧洲制服丝袜| 成人av网在线| 国产亚洲精品aa| 精品一区二区免费看| 欧美一级国产精品| 丝袜亚洲另类欧美综合| 在线看日本不卡| 亚洲精品高清视频在线观看| 波多野结衣亚洲一区| 国产午夜精品福利| 国产一区二区三区四区五区入口| 欧美一区二区黄| 日韩电影在线观看一区| 4438x亚洲最大成人网| 亚洲bt欧美bt精品| 精品视频一区二区三区免费| 亚洲综合一二区| 色婷婷激情综合| 亚洲午夜免费电影| 91精品国产色综合久久不卡电影| 视频一区二区中文字幕| 欧美美女网站色| 日本成人在线看| 日韩午夜电影av| 国产精品一区二区无线| 久久久久久黄色| 99精品视频中文字幕| 亚洲欧美日韩国产另类专区| 欧美在线色视频| 亚洲成a人v欧美综合天堂下载| 欧美日韩国产精选| 久久精品久久精品| 国产亚洲欧洲997久久综合 | 欧美少妇xxx| 视频一区国产视频| 亚洲精品一区二区三区四区高清| 狠狠色狠狠色综合系列| 国产精品欧美久久久久一区二区| 北条麻妃一区二区三区| 亚洲成a人片综合在线| 精品国产成人在线影院| 成人黄色电影在线| 亚洲一区二区高清| 日韩精品在线网站| 成人白浆超碰人人人人| 亚洲福利一区二区三区| 精品国产精品网麻豆系列| 成人国产精品免费观看视频| 一区二区欧美精品| 精品日韩在线一区| 国内成人免费视频| 亚洲精品精品亚洲| 精品国产3级a| 欧美亚洲国产一区二区三区 | 丁香一区二区三区| 亚洲欧美经典视频| 精品理论电影在线| 91伊人久久大香线蕉| 久久99精品久久久久婷婷| 国产日韩精品一区二区浪潮av| 色一区在线观看| 国产激情91久久精品导航| 亚洲第一福利一区| 久久精品日韩一区二区三区| 亚洲国产精品国自产拍av| 丰满少妇在线播放bd日韩电影| 在线一区二区视频| 美女国产一区二区三区| 最近日韩中文字幕| wwwwxxxxx欧美| 欧美在线观看视频一区二区三区 | 亚洲一区二区三区四区在线免费观看 | 国产91丝袜在线18| 日韩专区欧美专区| 国产精品精品国产色婷婷| 91麻豆精品国产91| 日本精品一级二级| a美女胸又www黄视频久久| 国产一区激情在线| 日本伊人午夜精品| 亚洲一区二区三区影院| 亚洲免费资源在线播放| 国产精品美女久久福利网站| 精品成a人在线观看| 在线播放91灌醉迷j高跟美女| av电影天堂一区二区在线| 国产精品1区2区| 美女精品自拍一二三四| 丝袜美腿亚洲色图| 亚洲va欧美va人人爽午夜| 亚洲欧美色图小说| 自拍偷在线精品自拍偷无码专区| 久久久久久久久久久黄色| 日韩精品一区二区三区视频在线观看| 欧美日本一区二区在线观看| 欧美性生交片4| 欧美日韩三级视频| 欧美日韩国产美| 欧美日韩一区二区欧美激情| 欧洲激情一区二区| 欧美亚州韩日在线看免费版国语版| 色网站国产精品| 欧美日韩一区二区三区四区| 欧美日韩成人一区| 91精品国产高清一区二区三区蜜臀 | 日韩电影免费在线| 日韩不卡在线观看日韩不卡视频| 性欧美大战久久久久久久久| 日精品一区二区| 久久99精品国产麻豆不卡| 国产精品66部| 99久久精品国产网站| 日本道在线观看一区二区| 日本久久电影网| 欧美一二三区精品| 国产日韩影视精品| 亚洲色图在线看| 亚洲国产中文字幕| 久久精品99国产国产精| 成人深夜在线观看| 欧美在线短视频| 91精品国产免费久久综合| 欧美一区二区国产| 久久午夜国产精品| 国产欧美精品一区aⅴ影院| 欧美不卡一区二区三区| 五月激情综合婷婷| 丰满白嫩尤物一区二区| 欧美性猛交xxxx乱大交退制版| 色丁香久综合在线久综合在线观看 | 精品日韩在线观看| 亚洲欧洲另类国产综合| 久久这里只有精品6| 自拍偷拍亚洲激情| 亚洲一区二区影院| 久久电影网站中文字幕| 欧美亚洲高清一区| 中文一区一区三区高中清不卡| 久久精品国产免费看久久精品| 欧美日韩你懂得| 亚洲1区2区3区4区| 欧美肥胖老妇做爰| 亚洲综合免费观看高清完整版 | 紧缚奴在线一区二区三区| 在线观看国产精品网站| 《视频一区视频二区| 国产精品一卡二卡| 欧美伊人久久大香线蕉综合69 | 99久久久免费精品国产一区二区| 亚洲精品一区二区在线观看| 美日韩一区二区| 亚洲精品欧美在线| 日韩精品专区在线影院观看| 国产精品资源站在线| 国产日韩影视精品| 日韩一级黄色片| 91一区二区三区在线观看| 麻豆精品在线播放| 亚洲成av人影院| 欧美激情一区二区在线| 在线播放91灌醉迷j高跟美女 | 色综合天天综合网天天看片| 国产传媒欧美日韩成人| 在线视频一区二区三| 成人av网在线| 91影视在线播放| 一本大道av伊人久久综合| 顶级嫩模精品视频在线看| 亚洲成人自拍网| 亚洲男同1069视频| 久久免费偷拍视频| 777午夜精品免费视频| 99久久99久久精品免费看蜜桃| 狠狠色丁香婷婷综合| 亚洲国产日韩一区二区| 国产精品久久久久久久午夜片| 精品国产第一区二区三区观看体验 | 91行情网站电视在线观看高清版| 国产一区二区女| 美女脱光内衣内裤视频久久影院| 亚洲成人一区二区在线观看| 亚洲品质自拍视频网站| 欧美激情综合网| 中文字幕亚洲精品在线观看| 久久蜜桃香蕉精品一区二区三区|