Code example for TreeSet

Methods: addAll

0
 * @version $Revision: 1.3.2.2 $ 
 */ 
public class DomainData 
{ 
   String domainName;
   TreeSet domainData = new TreeSet();
 
   /** Creates a new instance of MBeanInfo */ 
   public DomainData(String domainName)
   { 
      this.domainName = domainName;
   } 
   public DomainData(String domainName, MBeanData[] data)
   { 
      this.domainName = domainName;
      domainData.addAll(Arrays.asList(data));
   } 
 
   public int hashCode() 
   { 
      return domainName.hashCode();