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