Package 

Interface Converter

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

    
    public interface Converter<T extends Object>
     implements Component
                        

    转化器。

    类型转化器用于根据一般规则,将指定对象从一个类型转化到另一个类型。

    同一兼容类型的转化器可以注册多个。

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract T convert(Object value) 将指定的对象转化为另一个类型。如果转化失败,则抛出异常。
      T convertOrNull(Object value) 将指定的对象转化为另一个类型。如果转化失败,则返回null。
      Converter<T> componentCopy(Map<String, Object> componentParams)
      abstract Class<T> getTargetType()
      String getComponentId()
      Map<String, Object> getComponentParams()
      • Methods inherited from class icu.windea.breezeframework.core.component.Converter

        componentEquals, componentHashcode, componentToString
      • Methods inherited from class java.lang.Object

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