当前位置:网站首页>Open source framework support for range mode
Open source framework support for range mode
2022-06-10 03:15:00 【Liqiao s2008100262】
Catalog
2、apache commons Class library pair Range Support
3、hutool Class library pair Range Support
4、guava Class library pair Range Support
1、 The problem background
In our project , There is often a need for a range , In the method signature , It is often necessary to pass in a start date 、 End date , also , You need to determine whether a specified date is within a date range , This demand makes us very
It is necessary to Extract Class To refine a scope object , In order to achieve this requirement , Many open source frameworks provide good support , They usually provide some common scope objects , And it is convenient for us to expand freely , At least it generally provides a good inheritance system .
2、apache commons Class library pair Range Support
Range Only a pair of Number Type of support , If support is needed DateRange We need to expand ourselves .


3、hutool Class library pair Range Support

4、guava Class library pair Range Support
guava Only one class is provided to complete the Range Support for .

5、 summary
guava Class library pair Range The simplest support for , Only one class is provided Range, They are all factory methods or tool methods ,
There are very few external dependencies .
边栏推荐
- 关键字register和static
- P1082 [noip2012 improvement group] congruence equation
- P1082 [NOIP2012 提高组] 同余方程
- Analysis of the meaning of autocorrelation function / autocovariance function in different fields
- Difference between generate for and for
- Sword finger offer 09 Implementing queues with two stacks
- 多线程并发
- 自学脚手架——“Data-Driven Science and Engineering” by steven L. brunton(Chapter 5.0 - 5.4)
- Modify Google Chrome cache location
- Drawing of common charts
猜你喜欢
随机推荐
The annual income is 3.446 billion yuan, and another fellow countryman in Fujian is going to IPO
Lua's modules and packages
Xmake v2.6.6 release, distributed compilation and cache support
重构--Inline
generate for 和 for 区别
有关直连接口的开发
17 orthogonal matrix and gram Schmidt orthogonalization
数据的存储(整型,浮点型超详细)
switch case语法
Protobuf basic introduction to installation and use
Numpy use
Don't pretend to miss the Kindle
Jupyter notebook configuring virtual environments
The era of bat and faang is over. Who will take over?
剑指 Offer 09. 用两个栈实现队列
leetcode 19. Delete the penultimate node of the linked list
The new account started to attract nearly 2million fans, and the "old age" account can also become a dark horse for promotion
多线程并发
脚本bash
Broadcast has increased by 5000W, and "playing emotion cards" has become a new trend of the platform









