public class StringAttribute extends java.lang.Object implements AttributeMapEntry<AttributeKey,java.lang.String>
Modifier and Type | Field and Description |
---|---|
private AttributeKey |
key |
private java.lang.String |
value |
Constructor and Description |
---|
StringAttribute(AttributeKey key,
java.lang.String value) |
Modifier and Type | Method and Description |
---|---|
AttributeKey |
getKey() |
java.lang.String |
getValue() |
java.lang.String |
setValue(java.lang.String value) |
java.lang.String |
toString() |
private java.lang.String value
private final AttributeKey key
public StringAttribute(AttributeKey key, java.lang.String value)
public java.lang.String setValue(java.lang.String value)
setValue
in interface java.util.Map.Entry<AttributeKey,java.lang.String>
public AttributeKey getKey()
getKey
in interface AttributeMapEntry<AttributeKey,java.lang.String>
getKey
in interface java.util.Map.Entry<AttributeKey,java.lang.String>
public java.lang.String getValue()
getValue
in interface AttributeMapEntry<AttributeKey,java.lang.String>
getValue
in interface java.util.Map.Entry<AttributeKey,java.lang.String>
public java.lang.String toString()
toString
in class java.lang.Object