blob: bbf2d5c070b7b3bf2c45d1baf2393c3e37e0f2b4 [file] [log] [blame]
/*
* Copyright (c) 1998, 2020 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0 which is available at
* http://www.eclipse.org/legal/epl-2.0,
* or the Eclipse Distribution License v. 1.0 which is available at
* http://www.eclipse.org/org/documents/edl-v10.php.
*
* SPDX-License-Identifier: EPL-2.0 OR BSD-3-Clause
*/
// Contributors:
// Denise Smith - September 21 /2009
package org.eclipse.persistence.testing.oxm.mappings.compositeobject.self.norefclass;
public class Address {
private String street;
public Address() {
super();
}
public String toString() {
String returnString = " Address: " + getStreet();
return returnString;
}
public boolean equals(Object object) {
if (!(object instanceof Address)) {
return false;
}
Address addressObject = (Address) object;
if (!(this.getStreet().equals(addressObject.getStreet()))) {
return false;
}
return true;
}
public String getStreet() {
return street;
}
public void setStreet(String street) {
this.street = street;
}
}