public String getDescription()
{
- return (description == null && variation == null && original == null)
- ? null
- : (description == null ? "" : description)
- + ((variation != null)
- ? "Variation: '" + variation + "' "
+ if (description == null && variation == null && original == null)
+ {
+ return null;
+ }
+ return (description == null ? "" : description)
+ + (variation != null
+ ? (description != null ? " " : "") + "Variation: '"
+ + variation + "'"
: "")
- + ((original != null) ? "Original: '" + original + "'" : "");
+ + (original != null
+ ? ((description != null || variation != null) ? " "
+ : "") + "Original: '" + original + "'"
+ : "");
}
public void setDescription(String d)