Java List Min min(List booleans)

Here you can find the source of min(List booleans)

Description

Returns the min boolean in the booleans list.

License

Open Source License

Parameter

Parameter Description
booleans the booleans to calculate the min.

Return

the min boolean in the booleans list.

Declaration

public static boolean min(List<Boolean> booleans) 

Method Source Code


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

public class Main {
    /**/*from   w  w  w .j  av  a2s.c o m*/
     * Returns the min boolean in the booleans list.
     *
     * @param booleans the booleans to calculate the min.
     * @return the min boolean in the booleans list.
     */
    public static boolean min(List<Boolean> booleans) {
        for (boolean value : booleans) {
            if (!value) {
                return false;
            }
        }
        return true;
    }
}

Related

  1. getMinValue(List values)
  2. getMinWhitespace(final List lines)
  3. min(final List aList, final Double aDefalut)
  4. min(List values)
  5. min(List a, List b)
  6. min(List data)
  7. min(List l)
  8. min(List list)
  9. min(List values)