this(null, null, ' ', val);
}
+ /**
+ * human readable representation of an annotation row element.
+ *
+ * Format is 'display Char','secondary Structure
+ * Char',"description",score,[colourstring]
+ *
+ * fields may be missing if they are null, whitespace, or equivalent to
+ * Float.NaN
+ */
@Override
public String toString()
{
if (an_or != null
&& an_new!= null)
{
- if (!an_or.displayCharacter
- .equals(an_new.displayCharacter)
- || an_or.secondaryStructure != an_new.secondaryStructure
+ if (!an_or.displayCharacter.trim()
+ .equals(an_new.displayCharacter.trim())
+ || !(""+an_or.secondaryStructure).trim().equals((""+an_new.secondaryStructure).trim())
|| (an_or.description != an_new.description && (an_or.description == null
|| an_new.description == null || !an_or.description
.equals(an_new.description))))