org.omnaest.utils.structure.collection.list
Class BooleanList
java.lang.Object
org.omnaest.utils.structure.collection.list.decorator.ListDecorator<Boolean>
org.omnaest.utils.structure.collection.list.BooleanList
- All Implemented Interfaces:
- Serializable, Iterable<Boolean>, Collection<Boolean>, List<Boolean>
public class BooleanList
- extends ListDecorator<Boolean>
Special List wrapper for Boolean types which provides some further methods to analyze the state of the values.
- Author:
- Omnaest
- See Also:
containsOnlyTrueValues(),
containsOnlyFalseValues(),
containsAtLeastOneTrueValue(),
containsAtLeastNumberOfTrueValues(int),
Serialized Form
| Fields inherited from class org.omnaest.utils.structure.collection.list.decorator.ListDecorator |
list |
| Methods inherited from class org.omnaest.utils.structure.collection.list.decorator.ListDecorator |
add, add, addAll, addAll, clear, contains, containsAll, equals, get, getList, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, setList, size, subList, toArray, toArray, toString |
BooleanList
public BooleanList(List<Boolean> list)
- Parameters:
list - - See Also:
BooleanList
containsAtLeastOneTrueValue
public boolean containsAtLeastOneTrueValue()
containsAtLeastOneFalseValue
public boolean containsAtLeastOneFalseValue()
containsOnlyFalseValues
public boolean containsOnlyFalseValues()
containsOnlyTrueValues
public boolean containsOnlyTrueValues()
containsAtLeastNumberOfTrueValues
public boolean containsAtLeastNumberOfTrueValues(int numberOfTrueValues)
Copyright © 2013. All Rights Reserved.