D - The domain of values.public abstract class AAttributeValue<D> extends java.lang.Object implements IAttributeValue<D>
| Modifier | Constructor and Description |
|---|---|
protected |
AAttributeValue(IAttributeType<D> type)
Constructor creating a new attribute value for a certain type.
|
protected |
AAttributeValue(IAttributeType<D> type,
D value)
Constructor creating a new attribute value for a certain type together with a
value.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
IAttributeType<D> |
getType() |
D |
getValue() |
int |
hashCode() |
void |
setValue(D value) |
protected AAttributeValue(IAttributeType<D> type)
type - The type of the attribute value.protected AAttributeValue(IAttributeType<D> type, D value)
type - The type of the attribute value.value - The value of this attribute.public IAttributeType<D> getType()
public D getValue()
getValue in interface IAttributeValue<D>public void setValue(D value)
setValue in interface IAttributeValue<D>value - The value of this attribute value.public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object