public class Instance extends Object
Constructor and Description |
---|
Instance()
Create a new empty instance.
|
Modifier and Type | Method and Description |
---|---|
<T> T |
getValueFor(Attribute<T> attribute)
Returns the value for the passed attribute for this instance
|
<T> boolean |
hasAttribute(Attribute<T> attribute)
Checks if this instance contains the passed attribute
|
<T,V extends T> |
setValueFor(Attribute<T> attribute,
V value)
Sets the value for an attribute.
|
public <T,V extends T> void setValueFor(Attribute<T> attribute, V value)
attribute
- the attribute which value shall be setvalue
- the value for the attributepublic <T> boolean hasAttribute(Attribute<T> attribute)
attribute
- the Attribute
to check for@enterprise 10.0.39049 Copyright © 2024 FREQUENTIS AG. All Rights Reserved.