blob: 5174750ccb23860778a81172ccd49e320d33fbfe [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:
// dmccann - November 12/2009 - 2.0 - Initial implementation
package org.eclipse.persistence.testing.jaxb.externalizedmetadata.xmlmimetype;
import java.awt.Image;
import java.util.Arrays;
import jakarta.activation.DataHandler;
import javax.xml.transform.Source;
@jakarta.xml.bind.annotation.XmlRootElement(name="att-types")
public class AttTypes {
public byte[] b;
public DataHandler d;
public Source s;
public Image i;
public boolean equals(Object obj){
if(obj instanceof AttTypes){
AttTypes attObj = (AttTypes)obj;
if(d == null && attObj.d != null || s == null && attObj.s != null || i == null && attObj.i != null || (d != null && !(d.equals(attObj.d))) || (i != null && !(i.equals(attObj.i))) || (s != null && !(s.equals(attObj.s)))){
return false;
}
return Arrays.equals(b, attObj.b);
}
return false;
}
}