tecgraf.ftc_1_2.server.states
Enum OpenState.InternalState

java.lang.Object
  extended by java.lang.Enum<OpenState.InternalState>
      extended by tecgraf.ftc_1_2.server.states.OpenState.InternalState
All Implemented Interfaces:
Serializable, Comparable<OpenState.InternalState>
Enclosing class:
OpenState

protected static enum OpenState.InternalState
extends Enum<OpenState.InternalState>

Representa os estados internos desta operação.

Author:
Tecgraf/PUC-Rio

Enum Constant Summary
ERROR_CODE_SENT
          Estado que indica que o código de erro já foi enviado.
IDENTIFIER_RECEIVED
          Estado que indica que o identificador do arquivo já foi recebido.
IDENTIFIER_SIZE_RECEIVED
          Estado que indica que o tamanho do identificador do arquivo já foi recebido.
INITIAL
          O estado inicial.
 
Method Summary
static OpenState.InternalState valueOf(String name)
          Returns the enum constant of this type with the specified name.
static OpenState.InternalState[] 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

INITIAL

public static final OpenState.InternalState INITIAL
O estado inicial.


IDENTIFIER_SIZE_RECEIVED

public static final OpenState.InternalState IDENTIFIER_SIZE_RECEIVED
Estado que indica que o tamanho do identificador do arquivo já foi recebido.


IDENTIFIER_RECEIVED

public static final OpenState.InternalState IDENTIFIER_RECEIVED
Estado que indica que o identificador do arquivo já foi recebido.


ERROR_CODE_SENT

public static final OpenState.InternalState ERROR_CODE_SENT
Estado que indica que o código de erro já foi enviado.

Method Detail

values

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

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

valueOf

public static OpenState.InternalState 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 © 2017 Tecgraf/PUC-Rio. All rights reserved.