blob: 4b375bf4452c38c9196243d014ca2943df0ce0f3 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2007, 2018 Borland Software Corporation and others.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v2.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v20.html
*
* Contributors:
* Borland Software Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.m2m.internal.qvt.oml.ocl.metainfo;
public class OclMetainfoNamed {
public OclMetainfoNamed(String name) {
myName = name;
}
public String getName() {
return myName;
}
@Override
public int hashCode() {
return myName.hashCode();
}
@Override
public boolean equals(Object obj) {
if (obj instanceof OclMetainfoNamed == false) {
return false;
}
OclMetainfoNamed other = (OclMetainfoNamed) obj;
return getName().equals(other.getName());
}
protected final String myName;
}