/*
- * Jalview - A Sequence Alignment Editor and Viewer ($$Version-Rel$$)
- * Copyright (C) $$Year-Rel$$ The Jalview Authors
+ * Jalview - A Sequence Alignment Editor and Viewer (Version 2.9)
+ * Copyright (C) 2015 The Jalview Authors
*
* This file is part of Jalview.
*
{
PDB, FILE
}
+
Hashtable properties;
/*
return true;
}
PDBEntry o = (PDBEntry) obj;
- return /*
- * (file == o.file || (file != null && o.file != null && o.file
- * .equals(file))) &&
- */
- (type == o.type || (type != null && o.type != null && o.type
- .equals(type)))
+ return (type == o.type || (type != null && o.type != null && o.type
+ .equals(type)))
&& (id == o.id || (id != null && o.id != null && o.id
.equalsIgnoreCase(id)))
&& (chainCode == o.chainCode || (chainCode != null
&& (properties == o.properties || (properties != null
&& o.properties != null && properties
.equals(o.properties)));
+
}
/**
// this.file = filePath;
// this.id = pdbId;
// }
-
+
public PDBEntry(String pdbId, String chain, PDBEntry.Type type,
String filePath)
{
return file;
}
+ public void setType(String t)
+ {
+ this.type = t;
+ }
+
public void setType(PDBEntry.Type type)
{
- this.type = type.toString();
+ this.type = type == null ? null : type.toString();
}
public String getType()
this.chainCode = chainCode;
}
+ public String toString()
+ {
+ return id;
+ }
}