Java Collection Check isAllFalse(Collection booleans)

Here you can find the source of isAllFalse(Collection booleans)

Description

is All False

License

Open Source License

Declaration

public static boolean isAllFalse(Collection<Boolean> booleans) 

Method Source Code

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

import java.util.*;

public class Main {
    public static boolean isAllFalse(Collection<Boolean> booleans) {
        for (Boolean aBoolean : booleans) {
            if (aBoolean)
                return false;
        }//from   www. j  a v a2  s  .  c o  m

        return true;
    }
}

Related

  1. isa(Collection> types, Class type)
  2. isACollection(Object input)
  3. isArrayOrCollection(Class clazz)
  4. isArrayOrCollection(Object paramObj)
  5. isArrayOrCollection(Object v)
  6. isArrayOrCollection(String type)