xxkfz xxkfz
3年前
【工具篇】使用concurrentHashMap实现缓存工具类
📢📢📢📣📣📣哈喽!大家好,今天给大家带来一个使用concurrentHashMap封装的缓存工具类,并提供了常用的方法:存入缓存、查找缓存、删除缓存、获取缓存大小等等;✨个人博客:✨✨公众号:【SimpleMemory】✨❤️❤️❤️如果有对【后端技术】感兴趣的大佬们,欢迎关注!!!❤️❤️❤️ 示例代码:importlombok.extern.slf4j.Slf4j;importjava.util.;importjava.util.concurrent.;/@authorxxkfz
Wesley13 Wesley13
3年前
Java中常用的数据结构类
结构体系图!(https://oscimg.oschina.net/oscnet/f33e8cdd59d28091dd516ca2398a13d9811.png)ListArrayList、LinkedList、Vector有什么区别?ArrayList只能装入引用对象(基本类型
Stella981 Stella981
3年前
C++中string类的正确写法
C的一个常见面试题是让你实现一个String类,限于时间,不可能要求具备std::string的功能,但至少要求能正确管理资源。具体来说:1.能像int类型那样定义变量,并且支持赋值、复制。2.能用作函数的参数类型及返回类型。3.能用作标准库容器的元素类型,即vector/list/deque的
Wesley13 Wesley13
3年前
Java8中的LocalDateTime工具类
<divid"content\_views"class"markdown\_views"<!flowchart箭头图标勿删<svgxmlns"http://www.w3.org/2000/svg"style"display:none;"<pathstrokelinecap"round"d"M5,00,
Wesley13 Wesley13
3年前
Java中的13个原子操作类
点击上方“Java中文社群”,选择“设为星标(https://www.oschina.net/action/GoToLink?urlhttp%3A%2F%2Fmp.weixin.qq.com%2Fs%3F__biz%3DMzUzMTA2NTU2Ng%3D%3D%26mid%3D2247486188%26idx%3D3%26sn%3Df160d91ea2
Stella981 Stella981
3年前
JavaScript——面向对象以及基于类的继承
!(http://static.oschina.net/uploads/img/201601/15103654_Y7EU.gif)!(http://static.oschina.net/uploads/img/201601/15103654_PyU6.gif)ViewCode1/
Stella981 Stella981
3年前
Delphi中TStringList类常用属性方法详解
//TStringList常用方法与属性:varList:TStringList;i:Integer;beginList:TStringList.Create;List.Add('Strings1');{添加}List.Add(
Stella981 Stella981
3年前
JUnit5学习之三:Assertions类
欢迎访问我的GitHubhttps://github.com/zq2599/blog\_demos(https://www.oschina.net/action/GoToLink?urlhttps%3A%2F%2Fgithub.com%2Fzq2599%2Fblog_demos)内容:所有原创文章分类汇总及配套源码,涉及Java、Doc
Stella981 Stella981
3年前
RabbitMQ系类之一 安装,介绍,理论
        本书一切灵感均来自于<RabbitMQ实战 高效部署分布式消息队列这本书,书中知识会尽量复现验证,然我们一起学习,一起成长,当然有兴趣的同学还是拜读原著,收益颇丰.消息队列的成长史(是不是看不清,就算看清了也没啥用哈哈哈):!(https://static.oschina.net/uploads/space/2018/031
Stella981 Stella981
3年前
FtpUtil ftp工具类 过滤文件名
工具类:importjava.io.BufferedReader;importjava.io.ByteArrayOutputStream;importjava.io.DataInputStream;importjava.io.DataOutputStream;importjava.io.File;