Class TypeConverters.LevelConverter

    • Constructor Summary

      Constructors 
      Constructor Description
      LevelConverter()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Level convert​(java.lang.String s)
      Converts a String to a given type.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • LevelConverter

        public LevelConverter()
    • Method Detail

      • convert

        public Level convert​(java.lang.String s)
        Converts a String to a given type.
        Specified by:
        convert in interface TypeConverter<Level>
        Parameters:
        s - the string to convert
        Returns:
        the resolved level
        Throws:
        java.lang.NullPointerException - if the given value is null.
        java.lang.IllegalArgumentException - if the given argument is not resolvable to a level