Package org.eclipse.jgit.transport
Enum PacketLineIn.AckNackResult
- java.lang.Object
-
- java.lang.Enum<PacketLineIn.AckNackResult>
-
- org.eclipse.jgit.transport.PacketLineIn.AckNackResult
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<PacketLineIn.AckNackResult>
- Enclosing class:
- PacketLineIn
static enum PacketLineIn.AckNackResult extends java.lang.Enum<PacketLineIn.AckNackResult>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ACK
ACKACK_COMMON
ACK + commonACK_CONTINUE
ACK + continueACK_READY
ACK + readyNAK
NAK
-
Constructor Summary
Constructors Modifier Constructor Description private
AckNackResult()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static PacketLineIn.AckNackResult
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static PacketLineIn.AckNackResult[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NAK
public static final PacketLineIn.AckNackResult NAK
NAK
-
ACK
public static final PacketLineIn.AckNackResult ACK
ACK
-
ACK_CONTINUE
public static final PacketLineIn.AckNackResult ACK_CONTINUE
ACK + continue
-
ACK_COMMON
public static final PacketLineIn.AckNackResult ACK_COMMON
ACK + common
-
ACK_READY
public static final PacketLineIn.AckNackResult ACK_READY
ACK + ready
-
-
Method Detail
-
values
public static PacketLineIn.AckNackResult[] 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 (PacketLineIn.AckNackResult c : PacketLineIn.AckNackResult.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PacketLineIn.AckNackResult 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 namejava.lang.NullPointerException
- if the argument is null
-
-