Class MultiValuedAssociation

All Implemented Interfaces:
Serializable, Cloneable

final class MultiValuedAssociation extends AbstractAssociation
An instance of an association role containing an arbitrary number of values.
Note: in the common case where the association role restricts the cardinality to [0 … 1], the SingletonAssociation implementation consumes less memory.

Limitations

  • Multi-threading: MultiValuedAssociation instances are not thread-safe. Synchronization, if needed, shall be done externally by the caller.
  • Serialization: serialized objects of this class are not guaranteed to be compatible with future versions. Serialization should be used only for short term storage or RMI between applications running the same SIS version.
Since:
0.5
Version:
0.6
See Also: