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

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

?? level.java

?? 純java操作系統jnode,安裝簡單和操作簡單的個人使用的Java操作系統
?? JAVA
字號:
/* Level.java -- a class for indicating logging levels
   Copyright (C) 2002 Free Software Foundation, Inc.

This file is part of GNU Classpath.

GNU Classpath is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2, or (at your option)
any later version.

GNU Classpath is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
General Public License for more details.

You should have received a copy of the GNU General Public License
along with GNU Classpath; see the file COPYING.  If not, write to the
Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
02111-1307 USA.

Linking this library statically or dynamically with other modules is
making a combined work based on this library.  Thus, the terms and
conditions of the GNU General Public License cover the whole
combination.

As a special exception, the copyright holders of this library give you
permission to link this library with independent modules to produce an
executable, regardless of the license terms of these independent
modules, and to copy and distribute the resulting executable under
terms of your choice, provided that you also meet, for each linked
independent module, the terms and conditions of the license of that
module.  An independent module is a module which is not derived from
or based on this library.  If you modify this library, you may extend
this exception to your version of the library, but you are not
obligated to do so.  If you do not wish to do so, delete this
exception statement from your version.

*/


package java.util.logging;

import java.util.ResourceBundle;


/**
 * A class for indicating logging levels.  A number of commonly used
 * levels is pre-defined (such as <code>java.util.logging.Level.INFO</code>),
 * and applications should utilize those whenever possible.  For specialized
 * purposes, however, applications can sub-class Level in order to define
 * custom logging levels.
 *
 * @author Sascha Brawer <brawer@acm.org>
 */
public class Level
  implements java.io.Serializable
{
  /* The integer values are the same as in the Sun J2SE 1.4.
   * They have been obtained with a test program.
   */
  public static final Level OFF = new Level ("OFF", Integer.MAX_VALUE);
  public static final Level SEVERE = new Level ("SEVERE", 1000);
  public static final Level WARNING = new Level ("WARNING", 900);
  public static final Level INFO = new Level ("INFO", 800);
  public static final Level CONFIG = new Level ("CONFIG", 700);
  public static final Level FINE = new Level ("FINE", 500);
  public static final Level FINER = new Level ("FINER", 400);
  public static final Level FINEST = new Level ("FINEST", 300);
  public static final Level ALL = new Level ("ALL", Integer.MIN_VALUE);

  private static final Level[] knownLevels = {
    ALL, FINEST, FINER, FINE, CONFIG, INFO, WARNING, SEVERE, OFF
  };


  /**
   * The name of the Level without localizing it, for example
   * "WARNING".
   */
  private String name;


  /**
   * The integer value of this <code>Level</code>.
   */
  private int value;


  /**
   * The name of the resource bundle used for localizing the level
   * name, or <code>null</code> if the name does not undergo
   * localization.
   */
  private String resourceBundleName;


  /**
   * Creates a logging level given a name and an integer value.
   * It rarely is necessary to create custom levels,
   * as most applications should be well served with one of the
   * standard levels such as <code>Level.CONFIG</code>,
   * <code>Level.INFO</code>, or <code>Level.FINE</code>.
   *
   * @param name the name of the level.
   *
   * @param value the integer value of the level.  Please note
   *     that the Java<small><sup>TM</sup></small>
   *     Logging API does not specify integer
   *	 values for standard levels (such as
   *	 Level.FINE).  Therefore, a custom
   *	 level should pass an integer value that
   *	 is calculated at run-time, e.g.
   *	 <code>(Level.FINE.intValue() + Level.CONFIG.intValue())
   *	 / 2</code> for a level between FINE and CONFIG.
   */
  protected Level(String name, int value)
  {
    this(name, value, null);
  }


  /**
   * Create a logging level given a name, an integer value and a name
   * of a resource bundle for localizing the level name.  It rarely
   * is necessary to create custom levels, as most applications
   * should be well served with one of the standard levels such as
   * <code>Level.CONFIG</code>, <code>Level.INFO</code>, or
   * <code>Level.FINE</code>.
   *
   * @param name the name of the level.
   *
   * @param value the integer value of the level.  Please note
   *        that the Java<small><sup>TM</sup></small>
   *	    Logging API does not specify integer
   *	    values for standard levels (such as
   *	    Level.FINE).  Therefore, a custom
   *	    level should pass an integer value that
   *	    is calculated at run-time, e.g.
   *	    <code>(Level.FINE.intValue() + Level.CONFIG.intValue())
   *	    / 2</code> for a level between FINE and CONFIG.
   *
   * @param resourceBundleName the name of a resource bundle
   *       for localizing the level name, or <code>null</code>
   *       if the name does not need to be localized.
   */
  protected Level(String name, int value, String resourceBundleName)
  {
    this.name = name;
    this.value = value;
    this.resourceBundleName = resourceBundleName;
  }


  static final long serialVersionUID = -8176160795706313070L;


  /**
   * Checks whether the Level has the same intValue as one of the
   * pre-defined levels.  If so, the pre-defined level object is
   * returned.
   *
   * <br/>Since the resource bundle name is not taken into
   * consideration, it is possible to resolve Level objects that have
   * been de-serialized by another implementation, even if the other
   * implementation uses a different resource bundle for localizing
   * the names of pre-defined levels.
   */
  private Object readResolve()
  {
    for (int i = 0; i < knownLevels.length; i++)
      if (value == knownLevels[i].intValue())
	return knownLevels[i];

    return this;
  }


  /**
   * Returns the name of the resource bundle used for localizing the
   * level name.
   *
   * @return the name of the resource bundle used for localizing the
   * level name, or <code>null</code> if the name does not undergo
   * localization.
   */
  public String getResourceBundleName()
  {
    return resourceBundleName;
  }


  /**
   * Returns the name of the Level without localizing it, for example
   * "WARNING".
   */
  public String getName()
  {
    return name;
  }


  /**
   * Returns the name of the Level after localizing it, for example
   * "WARNUNG".
   */
  public String getLocalizedName()
  {
    String localizedName = null;

    if (resourceBundleName != null)
    {
      try
      {
        ResourceBundle b = ResourceBundle.getBundle(resourceBundleName);
	localizedName = b.getString(name);
      }
      catch (Exception _)
      {
      }
    }

    if (localizedName != null)
      return localizedName;
    else
      return name;
  }


  /**
   * Returns the name of the Level without localizing it, for example
   * "WARNING".
   */
  public final String toString()
  {
    return getName();
  }


  /**
   * Returns the integer value of the Level.
   */
  public final int intValue()
  {
    return value;
  }


  /**
   * Returns one of the standard Levels given either its name or its
   * integer value.  Custom subclasses of Level will not be returned
   * by this method.
   *
   * @throws IllegalArgumentException if <code>name</code> is neither
   * the name nor the integer value of one of the pre-defined standard
   * logging levels.
   *
   * @throws NullPointerException if <code>name</code> is null.
   *
   */
  public static Level parse(String name)
    throws IllegalArgumentException
  {
    /* This will throw a NullPointerException if name is null,
     * as required by the API specification.
     */
    name = name.intern();

    for (int i = 0; i < knownLevels.length; i++)
    {
      if (name == knownLevels[i].name)
	return knownLevels[i];
    }
    
    try
    {
      int num = Integer.parseInt(name);
      for (int i = 0; i < knownLevels.length; i++)
	if (num == knownLevels[i].value)
	  return knownLevels[i];
    }
    catch (NumberFormatException _)
    {
    }

    String msg = "Not the name of a standard logging level: \"" + name + "\"";
    throw new IllegalArgumentException(msg);
  }


  /**
   * Checks whether this Level's integer value is equal to that of
   * another object.
   *
   * @return <code>true</code> if <code>other</code> is an instance of
   *	 <code>java.util.logging.Level</code> and has the same integer
   * value, <code>false</code> otherwise.
   */
  public boolean equals(Object other)
  {
    if (!(other instanceof Level))
      return false;

    return value == ((Level) other).value;
  }


  public int hashCode()
  {
    return value;
  }  


  /**
   * Determines whether or not this Level is one of the standard
   * levels specified in the Logging API.
   *
   * <p>This method is package-private because it is not part
   * of the logging API specification.  However, an XMLFormatter
   * is supposed to emit the numeric value for a custom log
   * level, but the name for a pre-defined level. It seems
   * cleaner to put this method to Level than to write some
   * procedural code for XMLFormatter.
   *
   * @return <code>true</code> if this Level is a standard level,
   *         <code>false</code> otherwise.
   */
  final boolean isStandardLevel()
  {
    for (int i = 0; i < knownLevels.length; i++)
      if (knownLevels[i] == this)
	return true;

    return false;
  }
}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
黄一区二区三区| 色婷婷综合视频在线观看| 亚洲人成精品久久久久久 | 亚洲欧美一区二区三区久本道91 | 国产在线不卡视频| 九一九一国产精品| 国产一区美女在线| 国产精品亚洲综合一区在线观看| 韩国成人精品a∨在线观看| 精品一区二区三区免费毛片爱| 美女精品一区二区| 激情五月激情综合网| 国产精品综合二区| 不卡的av电影在线观看| 91蝌蚪porny九色| 欧美精品乱码久久久久久按摩 | 狠狠色狠狠色综合日日91app| 精品一区二区三区视频| 岛国精品一区二区| 在线观看日韩一区| 91精品国产91久久综合桃花| 精品国产乱码久久久久久蜜臀| 精品成人一区二区| 国产精品久久久久永久免费观看| 日韩伦理电影网| 日韩精品一级中文字幕精品视频免费观看 | 午夜亚洲福利老司机| 亚洲国产一二三| 免费成人美女在线观看| 国产一区二区三区在线看麻豆| 欧美aaa在线| 国产精品18久久久久久久久| 播五月开心婷婷综合| 精品1区2区3区| 精品成人在线观看| 亚洲美女免费视频| 看片网站欧美日韩| 91在线无精精品入口| 欧美日韩国产高清一区二区 | 成人精品小蝌蚪| 欧美日韩国产精品成人| 欧美激情在线一区二区三区| 亚洲一区在线观看视频| 国精品**一区二区三区在线蜜桃| eeuss鲁片一区二区三区在线观看| 欧美日韩国产一级片| 国产亚洲一二三区| 日韩成人一区二区| 91亚洲国产成人精品一区二三| 69堂成人精品免费视频| 亚洲美女在线一区| 国产成人亚洲综合a∨婷婷| 欧美日本一区二区在线观看| 国产精品久久久久精k8| 国产美女主播视频一区| 欧美疯狂性受xxxxx喷水图片| 中文字幕在线免费不卡| 国产伦精品一区二区三区在线观看| 91看片淫黄大片一级在线观看| 久久久亚洲精品一区二区三区| 三级久久三级久久久| 一本一道久久a久久精品| 国产欧美一区二区三区在线老狼| 日韩精品一级二级| 欧美日韩一区二区三区高清| 日韩毛片精品高清免费| 不卡av在线免费观看| 国产日韩欧美a| 韩国v欧美v日本v亚洲v| 精品国产乱码久久久久久牛牛| 亚洲第四色夜色| 日本大香伊一区二区三区| 国产精品视频一二三区| 国产精品资源在线看| 久久综合九色综合97_久久久| 日韩精品久久理论片| 91麻豆精品国产自产在线| 亚洲h动漫在线| 91麻豆精品国产自产在线| 午夜视频在线观看一区| 911国产精品| 青青草国产成人99久久| 欧美不卡在线视频| 国产精品一区二区你懂的| 26uuu国产电影一区二区| 国产成人自拍高清视频在线免费播放| 欧美www视频| 国产成人在线影院| 中文字幕乱码久久午夜不卡 | 亚洲va在线va天堂| 欧美日韩国产高清一区二区三区| 日韩精品一级中文字幕精品视频免费观看 | 国产伦精品一区二区三区免费 | 亚洲天天做日日做天天谢日日欢| 99久久婷婷国产| 亚洲国产日日夜夜| 日韩视频永久免费| 国产成人亚洲综合a∨婷婷| 国产精品第五页| 欧美日韩在线免费视频| 免费视频最近日韩| 国产午夜一区二区三区| 91丨九色丨国产丨porny| 亚洲国产一二三| 日韩精品一区二区三区视频| 国产精品自拍一区| 亚洲综合在线第一页| 欧美一区二区三区色| 国产美女主播视频一区| 一区二区三区四区视频精品免费 | 国产精品正在播放| 亚洲视频香蕉人妖| 欧美一卡在线观看| 成人美女在线视频| 午夜精品福利一区二区三区蜜桃| 欧美大尺度电影在线| caoporen国产精品视频| 日韩福利电影在线观看| 国产亚洲精品中文字幕| 欧美老人xxxx18| 成人av电影在线观看| 免费成人美女在线观看.| 一区视频在线播放| wwwwww.欧美系列| 欧美性三三影院| 国产成人av福利| 日本亚洲视频在线| 一区二区三区久久久| 亚洲国产精品成人综合 | 欧美不卡视频一区| 欧美性一级生活| 不卡av在线网| 国产精品1区二区.| 久久精品国产**网站演员| 亚洲精品伦理在线| 国产精品久久三区| 国产视频一区不卡| 精品国产自在久精品国产| 欧美精品少妇一区二区三区 | 亚洲乱码国产乱码精品精小说| 精品久久久久久久久久久久包黑料| 欧洲另类一二三四区| 97aⅴ精品视频一二三区| 国产米奇在线777精品观看| 开心九九激情九九欧美日韩精美视频电影 | 亚洲福利一区二区三区| 亚洲婷婷综合色高清在线| 国产精品天美传媒| 欧美国产激情二区三区| 国产无遮挡一区二区三区毛片日本| 3d动漫精品啪啪| 91精品国产乱码久久蜜臀| 欧美男男青年gay1069videost| 欧美午夜在线一二页| 91福利国产精品| 91精彩视频在线观看| 在线观看91视频| 色久综合一二码| 欧美三区免费完整视频在线观看| 欧美在线免费观看亚洲| 精品999久久久| 国产欧美一区视频| 国产精品欧美一区二区三区| 国产精品毛片久久久久久久| 国产精品久久久久精k8| 亚洲欧洲综合另类在线| 一区二区三区四区国产精品| 亚洲国产日韩一区二区| 日本色综合中文字幕| 九九九精品视频| 成人一区二区视频| 91国在线观看| 日韩免费一区二区| 欧美韩国日本一区| 亚洲色大成网站www久久九九| 一区二区三区在线免费观看| 日韩和欧美的一区| 国产米奇在线777精品观看| 91在线视频官网| 777色狠狠一区二区三区| 久久久久久久久久看片| 亚洲欧美另类小说视频| 天天亚洲美女在线视频| 国产一区二区毛片| 91免费精品国自产拍在线不卡| 欧美色精品在线视频| 久久久久久久综合狠狠综合| 亚洲激情在线播放| 精品一区精品二区高清| 91蝌蚪porny九色| 欧美成人女星排行榜| 自拍偷拍亚洲综合| 欧美亚洲一区二区在线观看| 日韩一级完整毛片| 亚洲欧美激情视频在线观看一区二区三区| 亚洲成a天堂v人片| 成人免费av在线| 精品久久久久久久久久久久久久久久久 | 欧美三级在线视频| 久久久久久一级片|