Package 

Interface Querier

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

    
    public interface Querier<T extends Object, R 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 R query(Object value, T queryObject) 根据指定类型的查询对象,查询查询对象。如果查询失败,则抛出异常。
      R queryOrNull(Object value, T queryObject) 根据指定类型的查询对象,查询查询对象。如果查询失败,则返回null。
      R queryOrDefault(Object value, T queryObject, R defaultValue) 根据指定类型的查询对象,查询查询对象。如果查询失败,则返回默认值。
      R queryOrElse(Object value, T queryObject, Function2<Object, T, R> defaultValue) 根据指定类型的查询对象,查询查询对象。如果查询失败,则返回默认值。
      Querier<T, R> componentCopy(Map<String, Object> componentParams)
      String getComponentId()
      Map<String, Object> getComponentParams()
      • Methods inherited from class icu.windea.breezeframework.core.component.Querier

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

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