Added new enums and desription

Signed-off-by: Marcin Woźniak <y0rune@aol.com>
This commit is contained in:
Marcin Woźniak 2021-01-06 11:38:16 +01:00
parent f9fc7fa7bd
commit fe06243bda
Signed by: y0rune
GPG Key ID: F204C385F57EB348

View File

@ -1,9 +1,23 @@
package com.plannaplan.types; package com.plannaplan.types;
/** /**
* GroupType contains types: LECTURE, CLASS * GroupType contains types: LECTURE, CLASS, LAB, SEMINAR, CONSERVATORY, PRATICE
*/ */
public enum GroupType { public enum GroupType {
LECTURE, CLASS 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;
}
} }