public final class Attribute extends Object
According to the man page, an attribute can have the following states:
Attribute.State.SET
Attribute.State.UNSET
Attribute.State.CUSTOM
null
is used instead of an instance of this
classModifier and Type | Class | Description |
---|---|---|
static class |
Attribute.State |
The attribute value state
|
Constructor | Description |
---|---|
Attribute(String key,
String value) |
Creates a new instance.
|
Attribute(String key,
Attribute.State state) |
Creates a new instance
|
Modifier and Type | Method | Description |
---|---|---|
boolean |
equals(Object obj) |
|
String |
getKey() |
|
Attribute.State |
getState() |
Returns the state.
|
String |
getValue() |
|
int |
hashCode() |
|
String |
toString() |
public Attribute(String key, Attribute.State state)
key
- the attribute key. Should not be null
.state
- the attribute state. It should be either Attribute.State.SET
or
Attribute.State.UNSET
. In order to create a custom value
attribute prefer the use of Attribute(String, String)
constructor.public String getKey()
null
)public Attribute.State getState()
null
)public String getValue()
null
)Copyright © 2018. All rights reserved.