package de.dhbwstuttgart.strucTypes4.typeVars;

/**
 * Created by sebastian on 14.04.17.
 */
public class TypeVar extends TypeVarAbstract {

    private String id;

    public TypeVar(String id) {
        this.id = id;
    }


    @Override
    public String toString() {
        return String.format("TVar: %s" , id);
    }

    @Override
    public boolean equals(Object obj) {
        if (obj.getClass().equals(TypeVar.class)) {
            TypeVar t = (TypeVar) obj;
            if (t.id.equals(id)) {
                return true;
            }
            else {
                return false;
            }
        }
        else {
            return false;
        }
    }
}
