2 * Jalview - A Sequence Alignment Editor and Viewer (Version 2.8.2)
3 * Copyright (C) 2014 The Jalview Authors
5 * This file is part of Jalview.
7 * Jalview is free software: you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License
9 * as published by the Free Software Foundation, either version 3
10 * of the License, or (at your option) any later version.
12 * Jalview is distributed in the hope that it will be useful, but
13 * WITHOUT ANY WARRANTY; without even the implied warranty
14 * of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15 * PURPOSE. See the GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with Jalview. If not, see <http://www.gnu.org/licenses/>.
19 * The Jalview Authors are detailed in the 'AUTHORS' file.
21 package jalview.datamodel;
38 * @see java.lang.Object#equals(java.lang.Object)
40 public boolean equals(Object obj)
42 if (obj == null || !(obj instanceof PDBEntry))
48 PDBEntry o = (PDBEntry) obj;
49 return (file == o.file || (file != null && o.file != null && o.file
51 && (type == o.type || (type != null && o.type != null && o.type
53 && (id == o.id || (id != null && o.id != null && o.id
54 .equalsIgnoreCase(id)))
55 && (properties == o.properties || (properties != null
56 && o.properties != null && properties
57 .equals(o.properties)));
64 public PDBEntry(PDBEntry entry)
69 if (entry.properties != null)
71 properties = (Hashtable) entry.properties.clone();
75 public void setFile(String file)
80 public String getFile()
85 public void setType(String type)
90 public String getType()
95 public void setId(String id)
100 public String getId()
105 public void setProperty(Hashtable property)
107 this.properties = property;
110 public Hashtable getProperty()