You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
445 B

package com.rotanareg.skolan;
/**
* Created by Marko K. Seppänen.
*/
public enum Role {
STUDENT, TEACHER, ADMIN;
@Override
public String toString() {
switch (this) {
case STUDENT:
return "Student";
case TEACHER:
return "Teacher";
case ADMIN:
return "Admin";
}
return "--not defined--"; // should never happen
}
}