Class TypeConverters.UuidConverter

  • All Implemented Interfaces:
    TypeConverter<java.util.UUID>
    Enclosing class:
    TypeConverters

    @Plugin(name="UUID",
            category="TypeConverter")
    public static class TypeConverters.UuidConverter
    extends java.lang.Object
    implements TypeConverter<java.util.UUID>
    Converts a String into a UUID.
    Since:
    2.8
    • Constructor Summary

      Constructors 
      Constructor Description
      UuidConverter()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.UUID 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

      • UuidConverter

        public UuidConverter()
    • Method Detail

      • convert

        public java.util.UUID convert​(java.lang.String s)
                               throws java.lang.Exception
        Description copied from interface: TypeConverter
        Converts a String to a given type.
        Specified by:
        convert in interface TypeConverter<java.util.UUID>
        Parameters:
        s - the String to convert. Cannot be null.
        Returns:
        the converted object.
        Throws:
        java.lang.Exception - thrown when a conversion error occurs