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