org.eigenbase.jmi.mem
Class JmiMemFactory.ManyList
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.ArrayList<Object>
org.eigenbase.jmi.mem.JmiMemFactory.ManyList
- All Implemented Interfaces:
- Serializable, Cloneable, Iterable<Object>, Collection<Object>, List<Object>, RandomAccess
- Enclosing class:
- JmiMemFactory
private static class JmiMemFactory.ManyList
- extends ArrayList<Object>
List which holds instances of a bi-directional relationship.
When an instance of the relationship is created, by calling add(Object) to the collection at one end, this collection automatically
finds the corresponding collection at the other end and calls its
addInternal method.
| Methods inherited from class java.util.ArrayList |
add, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, remove, removeRange, set, size, toArray, toArray, trimToSize |
element
private final JmiMemFactory.ElementImpl element
relationship
private final JmiMemFactory.Relationship relationship
JmiMemFactory.ManyList
JmiMemFactory.ManyList(JmiMemFactory.ElementImpl element,
JmiMemFactory.Relationship relationship)
add
public boolean add(Object o)
- Specified by:
add in interface Collection<Object>- Specified by:
add in interface List<Object>- Overrides:
add in class ArrayList<Object>
addAll
public boolean addAll(Collection<?> c)
- Specified by:
addAll in interface Collection<Object>- Specified by:
addAll in interface List<Object>- Overrides:
addAll in class ArrayList<Object>
addInternal
protected void addInternal(JmiMemFactory.ElementImpl source)