public class NaturalAssociator extends Object implements Associator
Associated interface.| Constructor and Description |
|---|
NaturalAssociator() |
| Modifier and Type | Method and Description |
|---|---|
Object |
getAssociatedKey(Object o)
Determine the host key (or base) object to which the specified object is associated.
|
protected Object |
validateAssociated(Associated assoc)
Check if given Associated object generates a circular association.
|
public Object getAssociatedKey(Object o)
Note: It's expected that the returned object is suitable to be used as an immutable identity (e.g. a key in a Map).
Note 2: Circular associations are not permitted.
getAssociatedKey in interface Associatoro - the object to obtain an association forprotected Object validateAssociated(Associated assoc)
assoc - an Associated object to checkRuntimeException - if there is a circular key association chain, or if the maximum association depth has been reached