public final class LongAttributeKey extends AttributeKey<Long>
AttributeKey for Long-typed values.defaultValue, key| Constructor and Description |
|---|
LongAttributeKey(String key) |
LongAttributeKey(String key,
Long defaultValue) |
| Modifier and Type | Method and Description |
|---|---|
String |
toString(Long value)
Convert an instance of
T to a string. |
Long |
toValue(String str)
Convert a string representation of
T to its native type. |
equals, get, getFromString, hashCodepublic LongAttributeKey(String key)
public String toString(Long value)
AttributeKeyT to a string.toString in class AttributeKey<Long>value - The value to convert. Will never be null.public Long 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<Long>str - The string representation to convert. Will never be
null.T.Copyright © 2011–2025 pepsoft.org. All rights reserved.