org.omnaest.utils.structure.collection.list
Class BooleanList

java.lang.Object
  extended by org.omnaest.utils.structure.collection.list.decorator.ListDecorator<Boolean>
      extended by 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

Field Summary
 
Fields inherited from class org.omnaest.utils.structure.collection.list.decorator.ListDecorator
list
 
Constructor Summary
BooleanList(List<Boolean> list)
           
 
Method Summary
 boolean containsAtLeastNumberOfTrueValues(int numberOfTrueValues)
           
 boolean containsAtLeastOneFalseValue()
           
 boolean containsAtLeastOneTrueValue()
           
 boolean containsOnlyFalseValues()
           
 boolean containsOnlyTrueValues()
           
 
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
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BooleanList

public BooleanList(List<Boolean> list)
Parameters:
list -
See Also:
BooleanList
Method Detail

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.