Here you can find the source of nullOrEmpty(List
Parameter | Description |
---|---|
s | a string |
public static boolean nullOrEmpty(List<Long> s)
//package com.java2s; //License from project: Apache License import java.util.List; public class Main { /**// www.j ava 2 s . c om * Check if String is null or empty * @param s a string * @return return true if String is null or empty */ public static boolean nullOrEmpty(String s) { return s == null || s.isEmpty(); } /** * Check if Long is null or zero * @param s a string * @return return true if String is null or zero */ public static boolean nullOrEmpty(Long s) { return s == null || s == 0; } /** * Check if double is zero * @param s a string * @return return true if String is zero */ public static boolean nullOrEmpty(double s) { return s == 0; } /** * Check if List is null or empty * @param s a string * @return return true if String is null or empty */ public static boolean nullOrEmpty(List<Long> s) { return s == null || s.isEmpty(); } }