com.android.sdklib.internal.repository.updater
Enum PkgItem.PkgState

java.lang.Object
  extended by java.lang.Enum<PkgItem.PkgState>
      extended by com.android.sdklib.internal.repository.updater.PkgItem.PkgState
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<PkgItem.PkgState>
Enclosing class:
PkgItem

public static enum PkgItem.PkgState
extends java.lang.Enum<PkgItem.PkgState>

The state of the a given PkgItem, that is the relationship between a given remote package and the local repository.


Enum Constant Summary
INSTALLED
          Package is locally installed and may or may not have an update.
NEW
          There's a new package available on the remote site that isn't installed locally.
 
Method Summary
static PkgItem.PkgState valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static PkgItem.PkgState[] 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

INSTALLED

public static final PkgItem.PkgState INSTALLED
Package is locally installed and may or may not have an update.


NEW

public static final PkgItem.PkgState NEW
There's a new package available on the remote site that isn't installed locally.

Method Detail

values

public static PkgItem.PkgState[] 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 (PkgItem.PkgState c : PkgItem.PkgState.values())
    System.out.println(c);

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

valueOf

public static PkgItem.PkgState valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null