Package 

Class DataExtensions

    • Method Summary

      Modifier and Type Method Description
      final static <T extends Any> Page<T> toPage(List<T> $self) 将当前列表转化为分页。
      final static <T extends Any> Page<T> toPage(List<T> $self, Pageable pageable) 将当前列表转化为分页。
      final static <T extends Any> T findOneOrNull(QueryByExampleExecutor<T> $self, Example<T> example) 根据Example查询一个结果,返回一个可空对象。
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • toPage

         final static <T extends Any> Page<T> toPage(List<T> $self)

        将当前列表转化为分页。

      • toPage

         final static <T extends Any> Page<T> toPage(List<T> $self, Pageable pageable)

        将当前列表转化为分页。

      • findOneOrNull

         final static <T extends Any> T findOneOrNull(QueryByExampleExecutor<T> $self, Example<T> example)

        根据Example查询一个结果,返回一个可空对象。