de.invation.code.toval.time.Weekday Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of TOVAL Show documentation
Show all versions of TOVAL Show documentation
TOVAL comprises a set of java classes for common programming issues. It includes utils for arrays, lists, sets and collections for convenient handling and modification, but also support for mathematic definitions concerning logic (clauses + resolution) together with some algorithms for permutations, powersets and resolution. Additionally it contains a number of types for multisets, matrices with object keys and much more.
The newest version!
package de.invation.code.toval.time;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
public enum Weekday implements Comparable{
MONDAY("Monday"),
TUESDAY("Tuesday"),
WEDNESDAY("Wednesday"),
THURSDAY("Thursday"),
FRIDAY("Friday"),
SATURDAY("Saturday"),
SUNDAY("Sunday");
private static final String[] descriptors = {"Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"};
private String descriptor = null;
private Weekday(String descriptor){
this.descriptor = descriptor;
}
@Override
public String toString(){
return descriptor;
}
public static List stringValues(){
List result = new ArrayList(Arrays.asList(descriptors));
return result;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy