AssociatedValueSupporting

Mechanica

Classes adopting this protocol can associate values to the object itself.

  • Mechanica

    Sets an associated value using a given key and association policy.

    Default Implementation

    Mechanica

    Sets an associated value using a given key and association policy.

  • getAssociatedValue(forKey:) Default implementation

    Mechanica

    Returns the value associated for a given key.

    Default Implementation

    Mechanica

    Returns the value associated for a given key.

  • Mechanica

    Removes an associated value using a given key and association policy.

    Default Implementation

    Mechanica

    Removes an associated value using a given key and association policy.

  • removeAllAssociatedValues() Default implementation

    Mechanica

    Removes all the associated values.

    Default Implementation

    Mechanica

    Removes all the associated values.