package de.dhbwstuttgart.strucTypes5.constraints;

/**
 * Created by sebastian on 20.04.17.
 */
public class ConstraintSubTypeGeneric<T1, T2> extends ConstraintAbstract {

    private T1 subType;
    private T2 superType;


    public ConstraintSubTypeGeneric(T1 subType, T2 superType) {
        this.subType = subType;
        this.superType = superType;
    }


    public T1 getSubType() {
        return subType;
    }

    public void setSubType(T1 subType) {
        this.subType = subType;
    }

    public T2 getSuperType() {
        return superType;
    }

    public void setSuperType(T2 superType) {
        this.superType = superType;
    }

    @Override
    public String toString() {
        return String.format("ConstraintSubTypeG( %s <* %s )" , subType , superType);
    }


}
