Esempio n. 1
0
  public boolean equals(ValuedDataObject otherObject) {

    if (!otherObject
        .getItemSubjectRef()
        .getStructureRef()
        .equals(this.itemSubjectRef.getStructureRef())) return false;
    if (!otherObject.getId().equals(this.id)) return false;
    if (!otherObject.getName().equals(this.name)) return false;
    if (!otherObject.getValue().equals(this.value.toString())) return false;

    return true;
  }
Esempio n. 2
0
 public void setValues(ValuedDataObject otherElement) {
   super.setValues(otherElement);
   if (otherElement.getValue() != null) {
     setValue(otherElement.getValue());
   }
 }