Interface Resolver<T>


public interface Resolver<T>
资源解析器接口。
Author:
Cody Lu
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    isSupported(T what)
    是否支持解析指定的资源。
    resolve(T what)
    解析资源。
  • Method Details

    • isSupported

      boolean isSupported(T what)
      是否支持解析指定的资源。
      Parameters:
      what - 资源
      Returns:
      true 支持,false 不支持
    • resolve

      T resolve(T what)
      解析资源。
      Parameters:
      what - 资源
      Returns:
      解析后的资源