public final class BooleanArrayList extends Object implements MutableBooleanList, Externalizable
FastList, and is memory-optimized for boolean primitives.| Constructor and Description |
|---|
BooleanArrayList() |
BooleanArrayList(boolean... array) |
BooleanArrayList(int initialCapacity) |
collectWithIndex, newEmpty, rejectWithIndex, selectWithIndex, swap, tap, zip, zipBooleanforEachInBothcollectWithIndex, rejectWithIndex, selectWithIndexcollect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, containsAny, containsAny, containsNone, containsNone, flatCollect, forEach, injectIntoBoolean, injectIntoByte, injectIntoChar, injectIntoDouble, injectIntoFloat, injectIntoInt, injectIntoLong, injectIntoShort, reduce, reduceIfEmpty, reject, selectpublic BooleanArrayList()
public BooleanArrayList(int initialCapacity)
public BooleanArrayList(boolean... array)
public static BooleanArrayList newListWith(boolean... array)
public static BooleanArrayList newList(BooleanIterable source)
public static BooleanArrayList newWithNValues(int size, boolean value)
public int size()
size in interface PrimitiveIterablepublic boolean isEmpty()
isEmpty in interface PrimitiveIterablepublic boolean notEmpty()
notEmpty in interface PrimitiveIterablepublic void clear()
clear in interface MutableBooleanCollectionpublic boolean contains(boolean value)
contains in interface BooleanIterablepublic boolean containsAll(boolean... source)
containsAll in interface BooleanIterablepublic boolean containsAll(BooleanIterable source)
containsAll in interface BooleanIterablepublic boolean get(int index)
get in interface BooleanListpublic boolean getFirst()
getFirst in interface OrderedBooleanIterablepublic boolean getLast()
getLast in interface ReversibleBooleanIterablepublic int indexOf(boolean object)
indexOf in interface OrderedBooleanIterablepublic int lastIndexOf(boolean object)
lastIndexOf in interface BooleanListpublic boolean add(boolean newItem)
add in interface MutableBooleanCollectionpublic boolean addAll(boolean... source)
addAll in interface MutableBooleanCollectionpublic boolean addAll(BooleanIterable source)
addAll in interface MutableBooleanCollectionpublic void addAtIndex(int index,
boolean element)
addAtIndex in interface MutableBooleanListpublic boolean addAllAtIndex(int index,
boolean... source)
addAllAtIndex in interface MutableBooleanListpublic boolean addAllAtIndex(int index,
BooleanIterable source)
addAllAtIndex in interface MutableBooleanListpublic boolean remove(boolean value)
remove in interface MutableBooleanCollectionpublic boolean removeIf(BooleanPredicate predicate)
removeIf in interface MutableBooleanCollectionpublic boolean removeAll(BooleanIterable source)
removeAll in interface MutableBooleanCollectionpublic boolean removeAll(boolean... source)
removeAll in interface MutableBooleanCollectionpublic boolean retainAll(BooleanIterable source)
retainAll in interface MutableBooleanCollectionpublic boolean retainAll(boolean... source)
retainAll in interface MutableBooleanCollectionpublic boolean removeAtIndex(int index)
removeAtIndex in interface MutableBooleanListpublic boolean set(int index,
boolean element)
set in interface MutableBooleanListpublic BooleanArrayList with(boolean element)
with in interface MutableBooleanCollectionwith in interface MutableBooleanListpublic BooleanArrayList without(boolean element)
without in interface MutableBooleanCollectionwithout in interface MutableBooleanListpublic BooleanArrayList withAll(BooleanIterable elements)
withAll in interface MutableBooleanCollectionwithAll in interface MutableBooleanListpublic BooleanArrayList withoutAll(BooleanIterable elements)
withoutAll in interface MutableBooleanCollectionwithoutAll in interface MutableBooleanListpublic BooleanArrayList with(boolean element1, boolean element2)
public BooleanArrayList with(boolean element1, boolean element2, boolean element3)
public BooleanArrayList with(boolean element1, boolean element2, boolean element3, boolean... elements)
public MutableBooleanIterator booleanIterator()
booleanIterator in interface BooleanIterablebooleanIterator in interface MutableBooleanCollectionpublic void each(BooleanProcedure procedure)
each in interface BooleanIterablepublic void forEachWithIndex(BooleanIntProcedure procedure)
forEachWithIndex in interface OrderedBooleanIterablepublic <T> T injectInto(T injectedValue,
ObjectBooleanToObjectFunction<? super T,? extends T> function)
injectInto in interface BooleanIterablepublic <T> T injectIntoWithIndex(T injectedValue,
ObjectBooleanIntToObjectFunction<? super T,? extends T> function)
injectIntoWithIndex in interface OrderedBooleanIterableinjectIntoWithIndex in interface ReversibleBooleanIterablepublic RichIterable<BooleanIterable> chunk(int size)
chunk in interface BooleanIterablepublic int count(BooleanPredicate predicate)
count in interface BooleanIterablepublic boolean anySatisfy(BooleanPredicate predicate)
anySatisfy in interface BooleanIterablepublic boolean allSatisfy(BooleanPredicate predicate)
allSatisfy in interface BooleanIterablepublic boolean noneSatisfy(BooleanPredicate predicate)
noneSatisfy in interface BooleanIterablepublic BooleanArrayList select(BooleanPredicate predicate)
select in interface BooleanIterableselect in interface MutableBooleanCollectionselect in interface BooleanListselect in interface MutableBooleanListselect in interface OrderedBooleanIterableselect in interface ReversibleBooleanIterablepublic BooleanArrayList reject(BooleanPredicate predicate)
reject in interface BooleanIterablereject in interface MutableBooleanCollectionreject in interface BooleanListreject in interface MutableBooleanListreject in interface OrderedBooleanIterablereject in interface ReversibleBooleanIterablepublic LazyBooleanIterable asReversed()
asReversed in interface ReversibleBooleanIterablepublic BooleanArrayList reverseThis()
reverseThis in interface MutableBooleanListpublic MutableBooleanList asUnmodifiable()
asUnmodifiable in interface MutableBooleanCollectionasUnmodifiable in interface MutableBooleanListpublic MutableBooleanList asSynchronized()
asSynchronized in interface MutableBooleanCollectionasSynchronized in interface MutableBooleanListpublic ImmutableBooleanList toImmutable()
toImmutable in interface MutableBooleanCollectiontoImmutable in interface BooleanListtoImmutable in interface MutableBooleanListpublic MutableBooleanList subList(int fromIndex, int toIndex)
subList in interface BooleanListsubList in interface MutableBooleanListpublic BooleanArrayList toReversed()
toReversed in interface BooleanListtoReversed in interface MutableBooleanListtoReversed in interface ReversibleBooleanIterablepublic MutableBooleanList distinct()
distinct in interface BooleanListdistinct in interface MutableBooleanListdistinct in interface ReversibleBooleanIterablepublic boolean detectIfNone(BooleanPredicate predicate, boolean ifNone)
detectIfNone in interface BooleanIterablepublic <V> MutableList<V> collect(BooleanToObjectFunction<? extends V> function)
collect in interface BooleanIterablecollect in interface MutableBooleanCollectioncollect in interface BooleanListcollect in interface MutableBooleanListcollect in interface OrderedBooleanIterablecollect in interface ReversibleBooleanIterablepublic boolean[] toArray()
toArray in interface BooleanIterablepublic boolean[] toArray(boolean[] target)
toArray in interface BooleanIterablepublic boolean equals(Object otherList)
equals in interface BooleanListequals in class Objectpublic int hashCode()
hashCode in interface BooleanListhashCode in class Objectpublic String toString()
toString in interface PrimitiveIterabletoString in class Objectpublic String makeString()
makeString in interface PrimitiveIterablepublic String makeString(String separator)
makeString in interface PrimitiveIterablepublic String makeString(String start, String separator, String end)
makeString in interface PrimitiveIterablepublic void appendString(Appendable appendable)
appendString in interface PrimitiveIterablepublic void appendString(Appendable appendable, String separator)
appendString in interface PrimitiveIterablepublic void appendString(Appendable appendable, String start, String separator, String end)
appendString in interface PrimitiveIterablepublic MutableBooleanList toList()
toList in interface BooleanIterablepublic MutableBooleanSet toSet()
toSet in interface BooleanIterablepublic MutableBooleanBag toBag()
toBag in interface BooleanIterablepublic LazyBooleanIterable asLazy()
asLazy in interface BooleanIterablepublic void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic void readExternal(ObjectInput in) throws IOException
readExternal in interface ExternalizableIOExceptionCopyright © 2004–2022. All rights reserved.