com.threerings.getdown.data
Enum Application.UpdateInterface.Step

java.lang.Object
  extended by java.lang.Enum<Application.UpdateInterface.Step>
      extended by com.threerings.getdown.data.Application.UpdateInterface.Step
All Implemented Interfaces:
Serializable, Comparable<Application.UpdateInterface.Step>
Enclosing class:
Application.UpdateInterface

public static enum Application.UpdateInterface.Step
extends Enum<Application.UpdateInterface.Step>

The major steps involved in updating, along with some arbitrary percentages assigned to them, to mark global progress.


Enum Constant Summary
DOWNLOAD
           
LAUNCH
           
PATCH
           
REDOWNLOAD_RESOURCES
           
UNPACK
           
UPDATE_JAVA
           
VERIFY_METADATA
           
VERIFY_RESOURCES
           
 
Field Summary
 List<Integer> defaultPercents
          What is the final percent value for this step?
 
Method Summary
static Application.UpdateInterface.Step valueOf(String name)
          Returns the enum constant of this type with the specified name.
static Application.UpdateInterface.Step[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

UPDATE_JAVA

public static final Application.UpdateInterface.Step UPDATE_JAVA

VERIFY_METADATA

public static final Application.UpdateInterface.Step VERIFY_METADATA

DOWNLOAD

public static final Application.UpdateInterface.Step DOWNLOAD

PATCH

public static final Application.UpdateInterface.Step PATCH

VERIFY_RESOURCES

public static final Application.UpdateInterface.Step VERIFY_RESOURCES

REDOWNLOAD_RESOURCES

public static final Application.UpdateInterface.Step REDOWNLOAD_RESOURCES

UNPACK

public static final Application.UpdateInterface.Step UNPACK

LAUNCH

public static final Application.UpdateInterface.Step LAUNCH
Field Detail

defaultPercents

public final List<Integer> defaultPercents
What is the final percent value for this step?

Method Detail

values

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

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

valueOf

public static Application.UpdateInterface.Step 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


Copyright © 2013. All Rights Reserved.