com.android.ddmlib
Enum Log.LogLevel

java.lang.Object
  extended by java.lang.Enum<Log.LogLevel>
      extended by com.android.ddmlib.Log.LogLevel
All Implemented Interfaces:
Serializable, Comparable<Log.LogLevel>
Enclosing class:
Log

public static enum Log.LogLevel
extends Enum<Log.LogLevel>

Log Level enum.


Enum Constant Summary
ASSERT
           
DEBUG
           
ERROR
           
INFO
           
VERBOSE
           
WARN
           
 
Method Summary
static Log.LogLevel getByLetter(char letter)
          Returns the Log.LogLevel enum matching the specified letter.
static Log.LogLevel getByLetterString(String letter)
          Returns the Log.LogLevel enum matching the specified letter.
static Log.LogLevel getByString(String value)
           
 int getPriority()
          Returns the numerical value of the priority.
 char getPriorityLetter()
          Returns the letter identifying the priority of the Log.LogLevel.
 String getStringValue()
          Returns a non translated string representing the LogLevel.
static Log.LogLevel valueOf(String name)
          Returns the enum constant of this type with the specified name.
static Log.LogLevel[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

VERBOSE

public static final Log.LogLevel VERBOSE

DEBUG

public static final Log.LogLevel DEBUG

INFO

public static final Log.LogLevel INFO

WARN

public static final Log.LogLevel WARN

ERROR

public static final Log.LogLevel ERROR

ASSERT

public static final Log.LogLevel ASSERT
Method Detail

values

public static Log.LogLevel[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (Log.LogLevel c : Log.LogLevel.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static Log.LogLevel valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

getByString

public static Log.LogLevel getByString(String value)

getByLetter

public static Log.LogLevel getByLetter(char letter)
Returns the Log.LogLevel enum matching the specified letter.

Parameters:
letter - the letter matching a LogLevel enum
Returns:
a LogLevel object or null if no match were found.

getByLetterString

public static Log.LogLevel getByLetterString(String letter)
Returns the Log.LogLevel enum matching the specified letter.

The letter is passed as a String argument, but only the first character is used.

Parameters:
letter - the letter matching a LogLevel enum
Returns:
a LogLevel object or null if no match were found.

getPriorityLetter

public char getPriorityLetter()
Returns the letter identifying the priority of the Log.LogLevel.


getPriority

public int getPriority()
Returns the numerical value of the priority.


getStringValue

public String getStringValue()
Returns a non translated string representing the LogLevel.



Copyright © 2008-2012. All Rights Reserved.