public class ManyAssociationWrapper extends Object implements ManyAssociation<Object>
Modifier and Type | Field and Description |
---|---|
protected ManyAssociation<Object> |
next |
Constructor and Description |
---|
ManyAssociationWrapper(ManyAssociation<Object> next) |
Modifier and Type | Method and Description |
---|---|
boolean |
add(int i,
Object entity) |
boolean |
add(Object entity) |
boolean |
contains(Object entity) |
int |
count()
Returns the number of references in this association.
|
boolean |
equals(Object obj) |
Object |
get(int i) |
int |
hashCode() |
Iterator<Object> |
iterator() |
ManyAssociation<Object> |
next() |
Iterable<EntityReference> |
references()
Returns an unmodifiable Iterable of the references to the associated entities.
|
boolean |
remove(Object entity) |
List<Object> |
toList() |
Set<Object> |
toSet() |
String |
toString() |
protected ManyAssociation<Object> next
public ManyAssociationWrapper(ManyAssociation<Object> next)
public ManyAssociation<Object> next()
public int count()
ManyAssociation
count
in interface ManyAssociation<Object>
public boolean contains(Object entity)
contains
in interface ManyAssociation<Object>
public boolean add(int i, Object entity)
add
in interface ManyAssociation<Object>
public boolean add(Object entity)
add
in interface ManyAssociation<Object>
public boolean remove(Object entity)
remove
in interface ManyAssociation<Object>
public Object get(int i)
get
in interface ManyAssociation<Object>
public List<Object> toList()
toList
in interface ManyAssociation<Object>
public Set<Object> toSet()
toSet
in interface ManyAssociation<Object>
public Iterable<EntityReference> references()
ManyAssociation
references
in interface ManyAssociation<Object>