Java List Null Empty isEmpty(List list, String message)

Here you can find the source of isEmpty(List list, String message)

Description

is Empty

License

Apache License

Declaration

public static void isEmpty(List<?> list, String message) 

Method Source Code


//package com.java2s;
//License from project: Apache License 

import java.util.List;

public class Main {

    public static void isEmpty(List<?> list, String message) {
        if (list == null || list.isEmpty()) {
            return;
        }/*from  ww  w  . j  a v  a 2 s .  c o  m*/
        throw new IllegalArgumentException(message);
    }
}

Related

  1. isEmpty(List list)
  2. isEmpty(List values)
  3. isEmpty(List list)
  4. isEmpty(List aList)
  5. isEmpty(List collection)
  6. isEmpty(List obj)
  7. isEmpty(List list)
  8. isEmpty(List aList)
  9. isEmpty(List list)