2020-07-25 09:58:40 +02:00
|
|
|
package com.plannaplan.types;
|
|
|
|
|
2020-11-18 09:01:45 +01:00
|
|
|
/**
|
2021-01-06 11:38:16 +01:00
|
|
|
* GroupType contains types: LECTURE, CLASS, LAB, SEMINAR, CONSERVATORY, PRATICE
|
2020-11-18 09:01:45 +01:00
|
|
|
*/
|
|
|
|
|
2020-07-25 09:58:40 +02:00
|
|
|
public enum GroupType {
|
2021-01-06 11:38:16 +01:00
|
|
|
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
|
|
|
}
|