Prettier logging, better frame titles, batch graduation
This commit is contained in:
@@ -13,7 +13,6 @@ public enum StudyField implements Serializable {
|
||||
VETERINARY_MEDICINE("Veterinary Medicine", "VE");
|
||||
|
||||
private final String name;
|
||||
|
||||
private final String abbreviation;
|
||||
|
||||
StudyField(String name, String abbreviation) {
|
||||
@@ -35,6 +34,10 @@ public enum StudyField implements Serializable {
|
||||
return null;
|
||||
}
|
||||
|
||||
public static List<StudyField> getAllEnums() {
|
||||
return Arrays.asList(values());
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
@@ -43,10 +46,6 @@ public enum StudyField implements Serializable {
|
||||
return abbreviation;
|
||||
}
|
||||
|
||||
public static List<StudyField> getAllEnums() {
|
||||
return Arrays.asList(values());
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return getName();
|
||||
|
||||
@@ -1,33 +1,21 @@
|
||||
package org.lumijiez.enums;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
|
||||
public enum Subjects implements Serializable {
|
||||
ENGLISH("English Language", "Eng"),
|
||||
LINEAR_ALGEBRA("Linear Algebra", "AL"),
|
||||
OBJECT_ORIENTED_PROGRAMMING("Object Oriented Programming", "OOP"),
|
||||
DATABASES("Databases", "DB"),
|
||||
MATHEMATICAL_ANALYSIS("Mathematical Analysis", "Mat. Anal"),
|
||||
DISCRETE_MATH("Discrete Math", "MD"),
|
||||
PROBABILITY_AND_STATISTICS("Probability and Statistics", "PSA"),
|
||||
PHYSICS("Physics", "PHYS");
|
||||
ENGLISH("English Language"),
|
||||
LINEAR_ALGEBRA("Linear Algebra"),
|
||||
OBJECT_ORIENTED_PROGRAMMING("Object Oriented Programming"),
|
||||
DATABASES("Databases"),
|
||||
MATHEMATICAL_ANALYSIS("Mathematical Analysis"),
|
||||
DISCRETE_MATH("Discrete Math"),
|
||||
PROBABILITY_AND_STATISTICS("Probability and Statistics"),
|
||||
PHYSICS("Physics");
|
||||
|
||||
private final String name;
|
||||
|
||||
private final String abbreviation;
|
||||
|
||||
Subjects(String name, String abbreviation) {
|
||||
Subjects(String name) {
|
||||
this.name = name;
|
||||
this.abbreviation = abbreviation;
|
||||
}
|
||||
|
||||
public static String getAbbrevFromString(String str) {
|
||||
for (Subjects st : values()) {
|
||||
if (st.name.equals(str)) return st.abbreviation;
|
||||
}
|
||||
return str;
|
||||
}
|
||||
|
||||
public static Subjects getEnum(String str) {
|
||||
@@ -41,14 +29,6 @@ public enum Subjects implements Serializable {
|
||||
return name;
|
||||
}
|
||||
|
||||
public String getAbbreviation() {
|
||||
return abbreviation;
|
||||
}
|
||||
|
||||
public static List<Subjects> getAllEnums() {
|
||||
return Arrays.asList(values());
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return getName();
|
||||
|
||||
Reference in New Issue
Block a user