程序包 net.meku.cylone

类 AbstractSimpleConverter<T,​S>

    • 构造器详细资料

      • AbstractSimpleConverter

        public AbstractSimpleConverter()
    • 方法详细资料

      • toList

        @Deprecated
        public java.util.List<T> toList​(java.util.List<S> sourceList)
        已过时。
        从接口复制的说明: PojoConverter
        将源对象列表转换为目标对象列表
        指定者:
        toList 在接口中 PojoConverter<T,​S>
        覆盖:
        toList 在类中 AbstractPojoConverter<T,​S>
        参数:
        sourceList - 源对象列表
        返回:
        目标对象列表
      • toPage

        @Deprecated
        public org.springframework.data.domain.Page<T> toPage​(org.springframework.data.domain.Page<S> sourcePage)
        已过时。
        从接口复制的说明: PojoConverter
        将源对象分页信息转换为目标对象分页信息
        指定者:
        toPage 在接口中 PojoConverter<T,​S>
        覆盖:
        toPage 在类中 AbstractPojoConverter<T,​S>
        参数:
        sourcePage - 源对象分页信息
        返回:
        目标对象分页信息
      • toPage

        public org.springframework.data.domain.Page<T> toPage​(org.springframework.data.domain.Page<S> sourcePage,
                                                              java.util.List<T> targetList)
        转换分页对象,目标列表的数量必须要与分页里源对象数量一致
        参数:
        targetList - 目标列表
        sourcePage - 源分页对象
        返回:
        目标分页对象