blob: 586f99ffb60ff823b300a2dccf22ef73c3f99af2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
package com.c2kernel.collection;
import java.util.ArrayList;
import com.c2kernel.utils.CastorArrayList;
public class CollectionArrayList extends CastorArrayList<Collection<CollectionMember>> {
public CollectionArrayList()
{
super();
}
public CollectionArrayList(ArrayList<Collection<CollectionMember>> aList)
{
super();
for (Collection<CollectionMember> coll : aList) {
put(coll);
}
}
/** Overwrite */
public void put(Collection<CollectionMember> c) {
for (Collection<CollectionMember> thisColl : list) {
if (thisColl.getName().equals(c.getName())) {
list.remove(thisColl);
break;
}
}
list.add(c);
}
}
|