You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
66 lines
1.5 KiB
66 lines
1.5 KiB
package de.memtext.baseobjects.coll; |
|
|
|
import java.util.Collection; |
|
import java.util.LinkedList; |
|
import java.util.List; |
|
import java.util.ListIterator; |
|
|
|
public class NamedIdObjectWithParentList extends NamedIdObjectWithParentCollection implements List { |
|
private static final long serialVersionUID = 1; |
|
public NamedIdObjectWithParentList() { |
|
super(); |
|
collect=new LinkedList(); |
|
} |
|
public Object get(int pos) |
|
{ |
|
return ((List)collect).get(pos); |
|
} |
|
|
|
public boolean addAll(int arg0, Collection arg1) { |
|
return ((List)collect).addAll(arg0,arg1); |
|
} |
|
|
|
public Object set(int arg0, Object arg1) { |
|
return ((List)collect).set(arg0,arg1); |
|
} |
|
|
|
public void add(int pos, Object arg1) { |
|
((List)collect).add(pos,arg1); |
|
} |
|
|
|
public Object remove(int arg0) { |
|
return ((List)collect).remove(arg0); |
|
} |
|
|
|
|
|
public ListIterator listIterator(int arg0) { |
|
return ((List)collect).listIterator(arg0); |
|
} |
|
|
|
public List subList(int arg0, int arg1) { |
|
return ((List)collect).subList(arg0,arg1); |
|
} |
|
|
|
public int indexOf(Object arg0) { |
|
return ((List)collect).indexOf(arg0); |
|
} |
|
|
|
public int lastIndexOf(Object arg0) { |
|
return ((List)collect).lastIndexOf(arg0); |
|
} |
|
|
|
public ListIterator listIterator() { |
|
return ((List)collect).listIterator(); |
|
} |
|
/** |
|
* Only shallow copy |
|
*/ |
|
protected Object clone() throws CloneNotSupportedException { |
|
NamedIdObjectWithParentList c=new NamedIdObjectWithParentList(); |
|
c.addAll(this); |
|
return c; |
|
} |
|
} |
|
|
|
|
|
//Created on 18.11.2003
|