Class LongConverter

java.lang.Object
com.github.joschi.jadconfig.converters.LongConverter
All Implemented Interfaces:
Converter<Long>

public class LongConverter extends Object implements Converter<Long>
Converter for type Long
Author:
jschalanda
  • Constructor Details

    • LongConverter

      public LongConverter()
  • Method Details

    • convertFrom

      public Long convertFrom(String value)
      Returns a Long instance representing the specified String value.
      Specified by:
      convertFrom in interface Converter<Long>
      Parameters:
      value - The configuration parameter's String value
      Returns:
      A Long instance representing the configuration parameter's value
    • convertTo

      public String convertTo(Long value)
      Returns a String instance representing the configuration parameter's value.
      Specified by:
      convertTo in interface Converter<Long>
      Parameters:
      value - The configuration parameter's Long value
      Returns:
      A String instance representing the configuration parameter's typed value