Package 

Interface Querier

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

    
    public interface Querier<T extends Object, R extends Object>
     implements Component
                        

    查询器。

    查询器用于根据指定类型的查询对象,查询目标对象。

    • Method Detail

      • query

         abstract R query(Object value, T queryObject)

        根据指定类型的查询对象,查询查询对象。如果查询失败,则抛出异常。

      • queryOrNull

         R queryOrNull(Object value, T queryObject)

        根据指定类型的查询对象,查询查询对象。如果查询失败,则返回null。

      • queryOrDefault

         R queryOrDefault(Object value, T queryObject, R defaultValue)

        根据指定类型的查询对象,查询查询对象。如果查询失败,则返回默认值。

      • queryOrElse

         R queryOrElse(Object value, T queryObject, Function2<Object, T, R> defaultValue)

        根据指定类型的查询对象,查询查询对象。如果查询失败,则返回默认值。