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.
27 lines
615 B
27 lines
615 B
package de.memtext.baseobjects.coll; |
|
|
|
import java.util.HashSet; |
|
import java.util.Set; |
|
|
|
public class NamedIdObjectWithParentSet extends NamedIdObjectWithParentCollection implements Set { |
|
private static final long serialVersionUID = 1; |
|
|
|
public NamedIdObjectWithParentSet() { |
|
super(); |
|
collect = new HashSet(); |
|
} |
|
|
|
|
|
/** |
|
* Only shallow copy |
|
*/ |
|
@Override |
|
protected Object clone() throws CloneNotSupportedException { |
|
NamedIdObjectWithParentCollection c = new NamedIdObjectWithParentSet(); |
|
c.addAll(this); |
|
return c; |
|
} |
|
} |
|
|
|
|
|
//Created on 03.12.2003
|