org.qi4j.api.entity.association
Interface ManyAssociation<T>

All Superinterfaces:
AbstractAssociation, AssociationInfo, Iterable<T>

public interface ManyAssociation<T>
extends Iterable<T>, AbstractAssociation

Association to a collection of entities.


Method Summary
 boolean add(int i, T entity)
           
 boolean add(T entity)
           
 boolean contains(T entity)
           
 int count()
           
 T get(int i)
           
 boolean remove(T entity)
           
 List<T> toList()
           
 Set<T> toSet()
           
 
Methods inherited from interface java.lang.Iterable
iterator
 
Methods inherited from interface org.qi4j.api.entity.association.AssociationInfo
isAggregated, isImmutable, metaInfo, qualifiedName, type
 

Method Detail

count

int count()

contains

boolean contains(T entity)

add

boolean add(int i,
            T entity)

add

boolean add(T entity)

remove

boolean remove(T entity)

get

T get(int i)

toList

List<T> toList()

toSet

Set<T> toSet()