java.lang.Object
com.wyu4.snowberryjam.compiler.enums.EnumHelper

public abstract class EnumHelper extends Object
Helper methods related to value Enums
See Also:
  • Constructor Details

    • EnumHelper

      public EnumHelper()
  • Method Details

    • stringToId

      public static SourceId stringToId(String str)
      Convert a string to a SourceId
      Parameters:
      str - String
      Returns:
      Corresponding SourceId. May be null if the string doesn't match any enums.
    • stringToKey

      public static SourceKey stringToKey(String str)
      Convert a string to a SourceKey
      Parameters:
      str - String
      Returns:
      Corresponding SourceKey. May be null if the string doesn't match any enums.