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.
35 lines
751 B
35 lines
751 B
package de.memtext.baseobjects.coll; |
|
|
|
import java.util.HashSet; |
|
import java.util.Set; |
|
|
|
public class NamedIdObjectSet extends NamedIdObjectCollection implements Set { |
|
private static final long serialVersionUID = 1; |
|
/** |
|
* Default uses a HashSet internally; |
|
* |
|
*/ |
|
public NamedIdObjectSet() { |
|
super(); |
|
collect=new HashSet(); |
|
} |
|
/** |
|
* |
|
* @param set the implementation of Set interface to use internally |
|
*/ |
|
public NamedIdObjectSet(Set set) { |
|
super(); |
|
collect=set; |
|
} |
|
|
|
/** |
|
* Only shallow copy |
|
*/ |
|
protected Object clone() throws CloneNotSupportedException { |
|
NamedIdObjectSet c=new NamedIdObjectSet(); |
|
c.addAll(this); |
|
return c; |
|
} |
|
} |
|
|
|
//Created on 03.12.2003
|