Class UUIDConverter

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

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

    • UUIDConverter

      public UUIDConverter()
  • Method Details

    • convertFrom

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

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