@Override
    public int compareTo(PlageHoraire t) {
        if(this.heureFin.before(t.getHeureDebut()) || this.heureFin.equals(t.getHeureDebut())) {
            return -1;
        }
        else if(this.heureDebut.after(t.getHeureFin()) || this.heureDebut.equals(t.getHeureFin())) {
            return 1;
        }
        else {
            return 0;
        }
    }