Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.hammurapi.reasoning.impl
Interface CollectionManager<B>

All Known Subinterfaces:
  KnowledgeBase<F>

All Known Implementing Classes:
  InMemoryKnowledgeBase

    public interface CollectionManager<B>

Implementations of this interface are used to manage collections to keep intermediate inference results. Returned collections which hold resources shall implement Destroyable.

Author:
  Pavel Vlasov

Method Summary
`
`<T extends B> List<? extends T>`
` | `getList(String id, Class<T> elementType)` Retrieves list with given id from the manager.
`
`<T extends B> Set<? extends T>`
` | `getSet(String id, Class<T> elementType)` Retrieves set with given id from the manager.

Method Detail

### getSet

    <T extends B> Set<? extends T> getSet(String id,
                                          Class<T> elementType)

  Retrieves set with given id from the manager. If set doesn't exist, it shall be created.

  Type Parameters:
    `T` -
  Parameters:
    `id` - Set id.
    `elementType` - Element type.
  Returns:

### getList

    <T extends B> List<? extends T> getList(String id,
                                            Class<T> elementType)

  Retrieves list with given id from the manager. If list doesn't exist, it shall be created.

  Type Parameters:
    `T` -
  Parameters:
    `id` - Set id.
    `elementType` - Element type.
  Returns:

Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD