Package 

Interface GenericConverter

  • All Implemented Interfaces:
    icu.windea.breezeframework.core.component.Component , icu.windea.breezeframework.core.component.Converter , icu.windea.breezeframework.core.component.TypedComponent

    
    public interface GenericConverter<T extends Object>
     implements Converter<T>
                        
    • Method Summary

      Modifier and Type Method Description
      abstract T convert(Object value, Type targetType)
      T convert(Object value) 将指定的对象转化为另一个类型。如果转化失败,则抛出异常。
      T convertOrNull(Object value, Type targetType)
      T convertOrNull(Object value) 将指定的对象转化为另一个类型。如果转化失败,则返回null。
      abstract Class<T> getTargetType() 目标类型。
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait