public final class Attributes extends Object
| Constructor and Description |
|---|
Attributes(Attribute... attributes)
Creates a new instance
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsKey(String key) |
boolean |
equals(Object obj) |
Attribute |
get(String key) |
Collection<Attribute> |
getAll() |
Attribute.State |
getState(String key)
Returns the state.
|
String |
getValue(String key) |
int |
hashCode() |
boolean |
isCustom(String key) |
boolean |
isEmpty() |
boolean |
isSet(String key) |
boolean |
isUnset(String key) |
boolean |
isUnspecified(String key) |
void |
put(Attribute a) |
void |
remove(String key) |
String |
toString() |
public Attributes(Attribute... attributes)
attributes - public boolean isEmpty()
public Collection<Attribute> getAll()
public void put(Attribute a)
a - public void remove(String key)
key - public boolean containsKey(String key)
key - Attributes contains this keypublic Attribute.State getState(String key)
key - null)public boolean isSet(String key)
key - Attribute.State.SET, false in all other casespublic boolean isUnset(String key)
key - Attribute.State.UNSET, false in all other casespublic boolean isUnspecified(String key)
key - Attribute.State.UNSPECIFIED, false in all other
casespublic boolean isCustom(String key)
key - Attribute.State.CUSTOM, false in all other cases
see getValue(String) for the value of the keypublic String getValue(String key)
key - null)Copyright © 2017 Eclipse JGit Project. All rights reserved.