Exemplo n.º 1
0
  // Javadoc inherited.
  public boolean equals(Object obj) {
    if (!(obj instanceof StructureValue)) {
      return false;
    }

    StructureValue other = (StructureValue) obj;

    return fieldValues.equals(other.getFieldValuesAsMap());
  }
Exemplo n.º 2
0
 /**
  * Copy constructor.
  *
  * @param value The object to copy.
  */
 protected StructureValueImpl(StructureValue value) {
   this(new HashMap(value.getFieldValuesAsMap()));
 }