DatabaseWrapper.java 文件源码

java
阅读 32 收藏 0 点赞 0 评论 0

项目:SqlSauce 作者:
/**
 * @return The result list will be ordered by the order of the provided id list, but may contain null for unknown
 * entities
 */
@Nonnull
@CheckReturnValue
//returns a list of sauced entities that may contain null elements
public <E extends SaucedEntity<I, E>, I extends Serializable> List<E> getEntities(@Nonnull final List<I> ids,
                                                                                  @Nonnull final Class<E> clazz)
        throws DatabaseException {
    return getEntities(ids.stream()
            .map(id -> EntityKey.of(id, clazz))
            .collect(Collectors.toList()));
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号