package com.c2kernel.collection; import java.util.ArrayList; import com.c2kernel.utils.CastorArrayList; public class CollectionArrayList extends CastorArrayList> { public CollectionArrayList() { super(); } public CollectionArrayList(ArrayList> aList) { super(); for (Collection coll : aList) { put(coll); } } /** Overwrite */ public void put(Collection c) { for (Collection thisColl : list) { if (thisColl.getName().equals(c.getName())) { list.remove(thisColl); break; } } list.add(c); } }