com.vaadin.flow.component.gridpro.vaadincom.Department Maven / Gradle / Ivy
package com.vaadin.flow.component.gridpro.vaadincom;
import java.util.Random;
public enum Department {
SERVICES("services"), MARKETING("marketing"), SALES("sales");
private String stringRepresentation;
Department(String stringRepresentation) {
this.stringRepresentation = stringRepresentation;
}
public static Department getRandomDepartment() {
Random random = new Random();
return Department.values()[random.nextInt(values().length)];
}
public String getStringRepresentation() {
return stringRepresentation;
}
@Override
public String toString() {
return getStringRepresentation();
}
}