Package org.eclipse.jgit.attributes
Enum Attribute.State
- All Implemented Interfaces:
Serializable
,Comparable<Attribute.State>
- Enclosing class:
Attribute
The attribute value state
see also https://www.kernel.org/pub/software/scm/git/docs/gitattributes.html
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionthe attribute is set to a custom valuethe attribute is setthe attribute is unsetthe attribute appears as if it would not be defined at all -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Attribute.State
Returns the enum constant of this type with the specified name.static Attribute.State[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
SET
the attribute is set -
UNSET
the attribute is unset -
UNSPECIFIED
the attribute appears as if it would not be defined at all- Since:
- 4.2
-
CUSTOM
the attribute is set to a custom value
-
-
Constructor Details
-
State
private State()
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-