Commit b7cd7fd5 authored by Alexander Ryndin's avatar Alexander Ryndin
Browse files

add missing class

parent aadf2db3
/**
*
* ******************************************************************************
* MontiCAR Modeling Family, www.se-rwth.de
* Copyright (c) 2017, Software Engineering Group at RWTH Aachen,
* All rights reserved.
*
* This project is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3.0 of the License, or (at your option) any later version.
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this project. If not, see <http://www.gnu.org/licenses/>.
* *******************************************************************************
*/
package de.monticore.lang.embeddedmontiarc;
import de.monticore.lang.monticar.struct.model.type.StructFieldTypeInfo;
import javax.annotation.Nonnull;
public class FormalTypeParameterFieldType implements StructFieldTypeInfo {
@Nonnull
private final String formalTypeParameterName;
public FormalTypeParameterFieldType(@Nonnull String formalTypeParameterName) {
this.formalTypeParameterName = formalTypeParameterName;
}
@Nonnull
public String getFormalTypeParameterName() {
return formalTypeParameterName;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
FormalTypeParameterFieldType that = (FormalTypeParameterFieldType) o;
return getFormalTypeParameterName().equals(that.getFormalTypeParameterName());
}
@Override
public int hashCode() {
return getFormalTypeParameterName().hashCode();
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment