Пример #1
0
  // Javadoc inherited.
  public boolean equals(Object obj) {
    if (!(obj instanceof StructureValue)) {
      return false;
    }

    StructureValue other = (StructureValue) obj;

    return fieldValues.equals(other.getFieldValuesAsMap());
  }
Пример #2
0
 /**
  * Copy constructor.
  *
  * @param value The object to copy.
  */
 protected StructureValueImpl(StructureValue value) {
   this(new HashMap(value.getFieldValuesAsMap()));
 }