package bluej.extensions;




import threadchecker.OnThread;
import threadchecker.Tag;


| The type of source that is available. | @OnThread(Tag.Any) public enum SourceType{ NONE, Java, Stride; public static SourceType getEnum(String s) { if (s == null || s.equals("null")) { return NONE; } String lowerCase = s.toLowerCase(); if (lowerCase.equals("stride")){ return Stride; } if (lowerCase.equals("java")){ return Java; } throw new IllegalArgumentException("No Enum specified for this string"); } public String getExtension() { switch (this) { case Java: return "java"; case Stride: return "stride"; default: return ""; } } }

.   getEnum
.   getExtension




45 neLoCode + 1 LoComm