Enum GitInfoConsumer.LineParts
- java.lang.Object
-
- java.lang.Enum<GitInfoConsumer.LineParts>
-
- org.apache.maven.scm.provider.git.gitexe.command.info.GitInfoConsumer.LineParts
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<GitInfoConsumer.LineParts>
- Enclosing class:
- GitInfoConsumer
static enum GitInfoConsumer.LineParts extends java.lang.Enum<GitInfoConsumer.LineParts>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AUTHOR_EMAILAUTHOR_LAST_MODIFIEDAUTHOR_NAMEHASH
-
Field Summary
Fields Modifier and Type Field Description private intindex
-
Constructor Summary
Constructors Modifier Constructor Description privateLineParts(int index)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetIndex()static GitInfoConsumer.LinePartsvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static GitInfoConsumer.LineParts[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
HASH
public static final GitInfoConsumer.LineParts HASH
-
AUTHOR_NAME
public static final GitInfoConsumer.LineParts AUTHOR_NAME
-
AUTHOR_EMAIL
public static final GitInfoConsumer.LineParts AUTHOR_EMAIL
-
AUTHOR_LAST_MODIFIED
public static final GitInfoConsumer.LineParts AUTHOR_LAST_MODIFIED
-
-
Method Detail
-
values
public static GitInfoConsumer.LineParts[] 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 (GitInfoConsumer.LineParts c : GitInfoConsumer.LineParts.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static GitInfoConsumer.LineParts 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
-
getIndex
public int getIndex()
-
-