tctc4869
V2EX  ›  Java

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

  •  
  •   tctc4869 · Mar 24, 2021 · 2898 views
    This topic created in 2057 days ago, the information mentioned may be changed or developed.

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

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

    10 replies  •  2021-04-19 10:13:33 +08:00
    Tsukihime
    Tsukihime
    Mar 24, 2021
    1
    可以基于 Character.isXxxx 自己封装一个?
    kkkkkrua
    kkkkkrua
    Mar 24, 2021
    2
    spring apache google,这几个包都没有?
    Oktfolio
    Oktfolio
    Mar 24, 2021
    3
    hutools
    Oktfolio
    Oktfolio
    Mar 24, 2021
    4
    hutool
    Jooooooooo
    Jooooooooo
    Mar 24, 2021
    5
    试下 apache commons 里的 StringUtils
    securityCoding
    securityCoding
    Mar 24, 2021
    6
    StringUtils
    NumberUtils
    tctc4869
    tctc4869
    OP
    Mar 24, 2021
    7
    @Oktfolio 这个工具包框架听过,但是具体是在哪里?
    boris93
    boris93
    Mar 24, 2021 via iPhone
    8
    有,记不得是 apache 还是 spring 的 StringUtils 里
    RedBeanIce
    RedBeanIce
    Mar 24, 2021
    9
    mybatisplus 有,lang3 也有
    ychost
    ychost
    Apr 19, 2021
    10
    apache 的 StringUtils yyds
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   4555 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 37ms · UTC 01:23 · PVG 09:23 · LAX 17:23 · JFK 20:23
    ♥ Do have faith in what you're doing.