V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
tctc4869
V2EX  ›  Java

Java 中有现成的针对判定字符串内容是什么的工具 Util 包么

  •  
  •   tctc4869 · 2021-03-24 16:09:04 +08:00 · 1801 次点击
    这是一个创建于 1121 天前的主题,其中的信息可能已经有所发展或是发生改变。

    如题。 经常要判断字符串是什么,例如数字( double,int,long,float ),bool,一些格式的字符串等。

    我想知道,有哪些框架拥有现成的,针对"判定字符串内容是什么"的工具包么

    10 条回复    2021-04-19 10:13:33 +08:00
    zydxn
        1
    zydxn  
       2021-03-24 16:12:18 +08:00
    可以基于 Character.isXxxx 自己封装一个?
    kkkkkrua
        2
    kkkkkrua  
       2021-03-24 16:16:33 +08:00
    spring apache google,这几个包都没有?
    Oktfolio
        3
    Oktfolio  
       2021-03-24 16:18:55 +08:00
    hutools
    Oktfolio
        4
    Oktfolio  
       2021-03-24 16:19:11 +08:00
    hutool
    Jooooooooo
        5
    Jooooooooo  
       2021-03-24 16:19:34 +08:00
    试下 apache commons 里的 StringUtils
    securityCoding
        6
    securityCoding  
       2021-03-24 16:35:00 +08:00
    StringUtils
    NumberUtils
    tctc4869
        7
    tctc4869  
    OP
       2021-03-24 17:29:42 +08:00
    @Oktfolio 这个工具包框架听过,但是具体是在哪里?
    boris93
        8
    boris93  
       2021-03-24 18:00:56 +08:00 via iPhone
    有,记不得是 apache 还是 spring 的 StringUtils 里
    RedBeanIce
        9
    RedBeanIce  
       2021-03-24 18:11:01 +08:00
    mybatisplus 有,lang3 也有
    ychost
        10
    ychost  
       2021-04-19 10:13:33 +08:00
    apache 的 StringUtils yyds
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3194 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 13:21 · PVG 21:21 · LAX 06:21 · JFK 09:21
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.