当前位置:网站首页>List<Long>,List<Integer>互相转换
List<Long>,List<Integer>互相转换
2022-07-28 05:17:00 【wang0112233】
Integer转Long
List<Long> listLong = JSONArray.parseArray(listInt.toString(),Long.class);Long 转Integer
//list<Long>转list<Integer>
List<Integer> integerList = JSONArray.parseArray(LongList.toString(), Integer.class);String转List<String>
String[] split = ctrDO.getTypeLimit().split(",");
List<String> regularList = Arrays.asList(split);String转Long
List<Long>=stringList.stream().map(Long::valueOf).collect(Collectors.toList());Long转String
List<String>=longList.stream().map(String::valueOf).collect(Collectors.toList());
边栏推荐
- Anaconda common instructions
- Autoreleasepool problem summary
- 2022 summer practice (first week)
- Oracle用sql查询某张表的字段信息(字段类型、长度等)
- Handling of web page image loading errors
- Message forwarding mechanism -- save your program from crashing
- Professor dongjunyu made a report on the academic activities of "Tongxin sticks to the study of war and epidemic"
- Simulink automatically generates STM32 code details
- MySQL(5)
- yandex robots txt
猜你喜欢

测试开发---自动化测试中的UI测试

FreeRTOS personal notes - task notification

Read the paper -- a CNN RNN framework for clip yield prediction

【CVPR2022】On the Integration of Self-Attention and Convolution

MySQL basic query

MySQL(5)

Check box error

【计算机三级信息安全】信息安全保障概述

【ARIXV2204】Neighborhood attention transformer

The research group passed the thesis defense successfully
随机推荐
在ruoyi生成的对应数据库的代码 之后我该怎么做才能做出下边图片的样子
【ARXIV2204】Simple Baselines for Image Restoration
Making RPM packages with nfpm
类和对象【中】
C language: addition and deletion of linked list in structure
ES6 new variable modifiers let and const, new basic data type symbol
从微服务基本概念到核心组件-通过一个实例来讲解和分析
mybaties foreach多选查询,index循环,取消and/or标签
架构设计思考之一(SSO设计)
First acquaintance with C language (1)
Reading sdwebimage source code Notes
Invalid bound statement (not found): com.exam.mapper.UserMapper.findbyid
【ARXIV2205】EdgeViTs: Competing Light-weight CNNs on Mobile Devices with Vision Transformers
Have you ever seen this kind of dynamic programming -- the stock problem of state machine dynamic programming (Part 2)
【ARXIV2205】Inception Transformer
Test Development - UI testing in automated testing
IDEA配置 service(Run Dashboard) 服务,多模块同时启动
使用nfpm制作rpm包
Applet import project
【idea插件神器】教你如何使用IDEA一键set实体类中所有属性