1 44 45 package org.jfree.data.general; 46 47 import java.io.Serializable ; 48 49 53 public class DatasetGroup implements Cloneable , Serializable { 54 55 56 private static final long serialVersionUID = -3640642179674185688L; 57 58 59 private String id; 60 61 64 public DatasetGroup() { 65 super(); 66 this.id = "NOID"; 67 } 68 69 74 public DatasetGroup(String id) { 75 if (id == null) { 76 throw new IllegalArgumentException ("Null 'id' argument."); 77 } 78 this.id = id; 79 } 80 81 86 public String getID() { 87 return this.id; 88 } 89 90 97 public Object clone() throws CloneNotSupportedException { 98 return super.clone(); 99 } 100 101 108 public boolean equals(Object obj) { 109 if (obj == this) { 110 return true; 111 } 112 if (!(obj instanceof DatasetGroup)) { 113 return false; 114 } 115 DatasetGroup that = (DatasetGroup) obj; 116 if (!this.id.equals(that.id)) { 117 return false; 118 } 119 return true; 120 } 121 122 } 123 | Popular Tags |