org.qi4j.spi.entity

## Interface NamedAssociationState

- All Superinterfaces:
    Iterable<String>
  All Known Implementing Classes:
    DefaultNamedAssociationState, JSONNamedAssociationState

      public interface NamedAssociationState
      extends Iterable<String>

  State holder for NamedAssociations. The actual state can be eager-loaded or lazy-loaded. This is an implementation detail. The Iterable<String> returns the names in the association set.

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | `containsName(String name)`
    `int` | `count()`
    `EntityReference` | `get(String name)`
    `String` | `nameOf(EntityReference entityReference)`
    `boolean` | `put(String name, EntityReference entityReference)`
    `boolean` | `remove(String name)`

    - ### Methods inherited from interface java.lang.Iterable

      `iterator`

- - ### Method Detail

    - #### count

          int count()

    - #### containsName

          boolean containsName(String name)

    - #### put

          boolean put(String name,
                    EntityReference entityReference)

    - #### remove

          boolean remove(String name)

    - #### get

          EntityReference get(String name)

    - #### nameOf

          String nameOf(EntityReference entityReference)