项目作者: mattroo8

项目描述 :
A groovy extension which removes null and "null" from your List types.
高级语言: Groovy
项目地址: git://github.com/mattroo8/nullminator.git
创建时间: 2018-04-02T18:34:29Z
项目社区:https://github.com/mattroo8/nullminator

开源协议:MIT License

下载


Build Status
codecov
Download

Nullminator

A groovy extension which removes null and “null” from your List types.

  1. List myList = [null, "null", 'null', "hello"]
  2. myList = myList.removeAllTheNulls()
  3. assert myList.size() == 1

Gradle

build.gradle

  1. repositories {
  2. maven { url "https://dl.bintray.com/mattroo8/Plugins" }
  3. }
  4. dependencies {
  5. compile "com.mroodev:nullminator:1.0"
  6. }