NewEntityCollection - Create new subject collection.
(entities ...*base.Entity)
| 88 | |
| 89 | // NewEntityCollection - Create new subject collection. |
| 90 | func NewEntityCollection(entities ...*base.Entity) *EntityCollection { |
| 91 | if len(entities) == 0 { |
| 92 | return &EntityCollection{} |
| 93 | } |
| 94 | return &EntityCollection{ |
| 95 | entities: entities, |
| 96 | } |
| 97 | } |
| 98 | |
| 99 | // CreateEntityIterator - Create entity iterator according to collection. |
| 100 | func (e *EntityCollection) CreateEntityIterator() *EntityIterator { |
no outgoing calls