Here you can find the source of min(List
Parameter | Description |
---|---|
booleans | the booleans to calculate the min. |
public static boolean min(List<Boolean> booleans)
//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; } }