backend/buisnesslogic/src/main/java/com/plannaplan/types/GroupType.java

23 lines
609 B
Java
Raw Normal View History

2020-07-25 09:58:40 +02:00
package com.plannaplan.types;
/**
* GroupType contains types: LECTURE, CLASS, LAB, SEMINAR, CONSERVATORY, PRATICE
*/
2020-07-25 09:58:40 +02:00
public enum GroupType {
LECTURE("Wykład"), CLASS("Ćwiczenia"), LAB("Laboratorium"), SEMINAR("Seminarium"),CONSERVATORY("Konwersatorium"), PRATICE("Praktyka");
public final String type;
private GroupType(String type) {
this.type = type;
}
public final static GroupType getType(String type) {
for (GroupType d : values()) {
if (d.type.equals(type)) {
return d;
}
}
return null;
}
2020-07-25 09:58:40 +02:00
}