package de.dhbwstuttgart.strucTypes4.typePlaceHolder;

/**
 * Created by sebastian on 08.04.17.
 */

// Ein Typeplaceholder
public class TPH {
    String id;

   public String getId() {
        return id;
    }


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

    @Override
    public String toString() {
        return id;
    }

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

}
