public class AssociationWrapper extends Object implements Association<Object>
| Modifier and Type | Field and Description |
|---|---|
protected Association<Object> |
next |
| Constructor and Description |
|---|
AssociationWrapper(Association<Object> next) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
Object |
get()
Get the associated entity.
|
int |
hashCode() |
Association<Object> |
next() |
EntityReference |
reference() |
void |
set(Object associated)
Set the associated entity.
|
String |
toString() |
protected Association<Object> next
public AssociationWrapper(Association<Object> next)
public Association<Object> next()
public Object get()
Associationget in interface Association<Object>public void set(Object associated) throws IllegalArgumentException
Associationset in interface Association<Object>associated - the entityIllegalArgumentException - thrown if the entity is not a valid reference for this associationpublic EntityReference reference()
reference in interface Association<Object>