com.rcll.domain.TeamColor Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of java-sdk Show documentation
Show all versions of java-sdk Show documentation
Java SDK for the RoboCup Logistics League
package com.rcll.domain;
import org.robocup_logistics.llsf_msgs.TeamProtos;
public enum TeamColor {
CYAN,
MAGENTA;
public static TeamColor fromString(String str) {
if (str.equalsIgnoreCase("magenta")) {
return MAGENTA;
} else if (str.equalsIgnoreCase("cyan")) {
return CYAN;
}
throw new RuntimeException("Unkown TeamColor: " + str);
}
}