Class HashCodeConverter

java.lang.Object
com.github.joschi.jadconfig.guava.converters.HashCodeConverter
All Implemented Interfaces:
Converter<com.google.common.hash.HashCode>

public class HashCodeConverter extends Object implements Converter<com.google.common.hash.HashCode>
Converter for type HashCode.
  • Constructor Details

    • HashCodeConverter

      public HashCodeConverter()
  • Method Details

    • convertFrom

      public com.google.common.hash.HashCode convertFrom(String value)
      Returns a HashCode instance representing the specified String value.
      Specified by:
      convertFrom in interface Converter<com.google.common.hash.HashCode>
      Parameters:
      value - The configuration parameter's String value
      Returns:
      An HashCode instance representing the configuration parameter's value
    • convertTo

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