According to the man page, an attribute can have the following states:
org.eclipse.jgit.attributes.Attribute.State#SET org.eclipse.jgit.attributes.Attribute.State#UNSET org.eclipse.jgit.attributes.Attribute.State#CUSTOM | Modifier and Type | Class and Description |
|---|---|
| public static enum | Attribute.
The attribute value state see also https://www.kernel.org/pub/software/scm/git/docs/gitattributes.html |
| Modifier and Type | Field and Description |
|---|---|
| private final String | |
| private final Attribute. | |
| private final String |
| Access | Constructor and Description |
|---|---|
| public | Attribute(String
the attribute key. Should not be key, Attribute.null.the attribute state. It should be either
stateorg. or
org.. In
order to create a custom value attribute prefer the use of
Attribute(String, String) constructor.Creates a new instance |
| private | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(Object
the reference object with which to compare. obj)Overrides java. Indicates whether some other object is "equal to" this one. |
| public String | |
| public Attribute. | |
| public String | |
| public int | |
| public String |
| key | back to summary |
|---|---|
| private final String key | |
| state | back to summary |
|---|---|
| private final Attribute. | |
| value | back to summary |
|---|---|
| private final String value | |
| Attribute | back to summary |
|---|---|
| public Attribute(String key, Attribute. Creates a new instance
| |
| Attribute | back to summary |
|---|---|
| private Attribute(String key, Attribute. | |
| Attribute | back to summary |
|---|---|
| public Attribute(String key, String value) Creates a new instance. | |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| getKey | back to summary |
|---|---|
| public String getKey() Get key
| |
| getState | back to summary |
|---|---|
| public Attribute. Return the state. | |
| getValue | back to summary |
|---|---|
| public String getValue() Get value | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |
| Modifier and Type | Field and Description |
|---|---|
| public static final Attribute. | CUSTOM
the attribute is set to a custom value |
| public static final Attribute. | SET
the attribute is set |
| public static final Attribute. | UNSET
the attribute is unset |
| public static final Attribute. | UNSPECIFIED
the attribute appears as if it would not be defined at all |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static Attribute. | |
| public static Attribute. |
| CUSTOM | back to summary |
|---|---|
| public static final Attribute. the attribute is set to a custom value | |
| SET | back to summary |
|---|---|
| public static final Attribute. the attribute is set | |
| UNSET | back to summary |
|---|---|
| public static final Attribute. the attribute is unset | |
| UNSPECIFIED | back to summary |
|---|---|
| public static final Attribute. the attribute appears as if it would not be defined at all
| |
| State | back to summary |
|---|---|
| private State() | |
| valueOf | back to summary |
|---|---|
| public static Attribute. | |
| values | back to summary |
|---|---|
| public static Attribute. | |