Java List Null Empty isNotEmpty(List list)

Here you can find the source of isNotEmpty(List list)

Description

is Not Empty

License

Open Source License

Declaration

@SuppressWarnings("rawtypes")
public static boolean isNotEmpty(List list) 

Method Source Code


//package com.java2s;
import java.util.List;
import java.util.Map;

public class Main {

    @SuppressWarnings("rawtypes")
    public static boolean isNotEmpty(List list) {
        if (list == null || list.size() < 1) {
            return false;
        }//from w ww .  j av a 2  s  . c o  m
        return true;
    }

    @SuppressWarnings("rawtypes")
    public static boolean isNotEmpty(Map map) {
        if (map != null && map.size() > 0) {
            return true;
        }
        return false;
    }
}

Related

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