public class Attribute extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
protected String |
m_key
Field m_key holds the key or name of the attribute.
|
protected AttributeValue |
m_value
Field m_value holds thee value of this attribute.
|
Constructor and Description |
---|
Attribute(String key,
AttributeValue value)
Creates an Attribute.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o)
Tests for equality.
|
String |
getKey() |
AttributeValue |
getValue() |
int |
hashCode()
Generates a hashcode based of the hashcode of the key and value.
|
String |
toString()
Generates an informal string.
|
protected String m_key
protected AttributeValue m_value
org.n52.security.common.attributes.AttributeValue}
public Attribute(String key, AttributeValue value)
AttributeValue.EMPTY_VALUE
.key
- the key or name of the attributevalue
- the value of the attribute.public String getKey()
public AttributeValue getValue()
public boolean equals(Object o)
public int hashCode()
Copyright © 2004–2018 52north.org. All rights reserved.