public final class StringAttributeKey extends AttributeKey<String>
AttributeKey for String-typed values.defaultValue, key| Constructor and Description |
|---|
StringAttributeKey(String key) |
StringAttributeKey(String key,
String defaultValue) |
| Modifier and Type | Method and Description |
|---|---|
String |
toString(String value)
Convert an instance of
T to a string. |
String |
toValue(String str)
Convert a string representation of
T to its native type. |
equals, get, getFromString, hashCodepublic StringAttributeKey(String key)
public String toString(String value)
AttributeKeyT to a string.toString in class AttributeKey<String>value - The value to convert. Will never be null.public String toValue(String str)
AttributeKeyT to its native type.
This implementation always throws an
UnsupportedOperationException. Subclasses should override this
method to implement it.
toValue in class AttributeKey<String>str - The string representation to convert. Will never be
null.T.Copyright © 2011–2023 pepsoft.org. All rights reserved.