Java List Null Empty isNonEmptyArray(List value)

Here you can find the source of isNonEmptyArray(List value)

Description

Used for parameter validation

License

Open Source License

Parameter

Parameter Description
value a value to validate

Return

true if parameter valid, otherwise false

Declaration

public static boolean isNonEmptyArray(List<String> value) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.util.List;

public class Main {
    /**/*  w  w w  .  j  a  v a  2s.  c o m*/
     * Used for parameter validation
     * @param value a value to validate
     * @return true if parameter valid, otherwise false
     */
    public static boolean isNonEmptyArray(List<String> value) {
        return value != null && !value.isEmpty();
    }
}

Related

  1. isListElementsEmpty(final List l)
  2. isListEmpty(final List list)
  3. isListEmpty(List oneList)
  4. isListEmpty(List list)
  5. isListNullOrEmpty(List lst)
  6. isNotEmpty(final List aList)
  7. isNotEmpty(List list)
  8. isNotEmpty(List list)
  9. isNotEmpty(List values)