mirror of
https://github.com/shekhargulati/strman-java.git
synced 2026-10-29 12:37:00 +00:00
Adding isBlank method (#89)
* added isBlank method, along with junit test and readme update * removing local files * adding gitignore with Eclipse specific files ignored * removed unused imports from Strman.java and split tests out to match current test convention
This commit is contained in:
committed by
Shekhar Gulati
parent
cf1d373442
commit
d04e679b07
@@ -618,6 +618,19 @@ join(new String[]{"hello","world","123"}, ";")
|
||||
// result => "hello;world;123")
|
||||
```
|
||||
|
||||
## isBlank
|
||||
|
||||
isEmpty returns true if a string is blank or null and false otherwise.
|
||||
|
||||
```java
|
||||
isBlank("")
|
||||
// result => true)
|
||||
isBlank(null)
|
||||
// result => true)
|
||||
isBlank("test")
|
||||
// result => false)
|
||||
```
|
||||
|
||||
## Inspiration
|
||||
|
||||
This library is inspired by [dleitee/strman](https://github.com/dleitee/strman).
|
||||
|
||||
Reference in New Issue
Block a user