Package org.eclipse.jgit.lib
Enum CoreConfig.EolStreamType
- java.lang.Object
-
- java.lang.Enum<CoreConfig.EolStreamType>
-
- org.eclipse.jgit.lib.CoreConfig.EolStreamType
-
- All Implemented Interfaces:
Serializable
,Comparable<CoreConfig.EolStreamType>
- Enclosing class:
- CoreConfig
public static enum CoreConfig.EolStreamType extends Enum<CoreConfig.EolStreamType>
EOL stream conversion protocol.- Since:
- 4.3
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CoreConfig.EolStreamType
valueOf(String name)
Returns the enum constant of this type with the specified name.static CoreConfig.EolStreamType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
TEXT_CRLF
public static final CoreConfig.EolStreamType TEXT_CRLF
Convert to CRLF without binary detection.
-
TEXT_LF
public static final CoreConfig.EolStreamType TEXT_LF
Convert to LF without binary detection.
-
AUTO_CRLF
public static final CoreConfig.EolStreamType AUTO_CRLF
Convert to CRLF with binary detection.
-
AUTO_LF
public static final CoreConfig.EolStreamType AUTO_LF
Convert to LF with binary detection.
-
DIRECT
public static final CoreConfig.EolStreamType DIRECT
Do not convert.
-
-
Method Detail
-
values
public static CoreConfig.EolStreamType[] 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 (CoreConfig.EolStreamType c : CoreConfig.EolStreamType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CoreConfig.EolStreamType 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 nameNullPointerException
- if the argument is null
-
-