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