You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
52 lines
846 B
52 lines
846 B
package data;
|
|
|
|
public enum Collocability {
|
|
DICE("Dice");
|
|
|
|
private final String name;
|
|
|
|
Collocability(String name) {
|
|
this.name = name;
|
|
}
|
|
|
|
public String toString() {
|
|
return this.name;
|
|
}
|
|
|
|
public static Collocability factory(String cf) {
|
|
if (cf != null) {
|
|
if (DICE.toString().equals(cf)) {
|
|
return DICE;
|
|
}
|
|
}
|
|
return null;
|
|
}
|
|
|
|
public String toMetadataString() {
|
|
switch(this){
|
|
case DICE:
|
|
return "Kolokabilnost - Dice:";
|
|
default:
|
|
return null;
|
|
}
|
|
}
|
|
|
|
public String toHeaderString() {
|
|
switch(this){
|
|
case DICE:
|
|
return "Kolokabilnost - Dice";
|
|
default:
|
|
return null;
|
|
}
|
|
}
|
|
|
|
// public String toPercentString() {
|
|
// switch(this){
|
|
// case DICE:
|
|
// return "Delež glede na vse različnice";
|
|
// default:
|
|
// return null;
|
|
// }
|
|
// }
|
|
}
|