FastList, and is memory-optimized for boolean primitives.
| Modifier and Type | Class and Description |
|---|---|
| private class |
| Modifier and Type | Field and Description |
|---|---|
| private transient BitSet | |
| private static final long | |
| private int |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | |
| private |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | add(boolean newItem)
Implements org.
|
| public boolean | addAll(boolean... source)
Implements org.
|
| public boolean | |
| public boolean | addAllAtIndex(int index, boolean... source)
Implements org.
|
| public boolean | addAllAtIndex(int index, BooleanIterable source)
Implements org.
|
| public void | addAtIndex(int index, boolean element)
Implements org.
|
| private void | |
| public boolean | allSatisfy(BooleanPredicate predicate)
Implements org. Returns true if all of the elements in the BooleanIterable return true for the specified predicate, otherwise returns false. |
| public boolean | anySatisfy(BooleanPredicate predicate)
Implements org. Returns true if any of the elements in the BooleanIterable return true for the specified predicate, otherwise returns false. |
| public void | appendString(Appendable appendable)
Overrides default org. Prints a string representation of this collection onto the given |
| public void | appendString(Appendable appendable, String separator)
Overrides default org. Prints a string representation of this collection onto the given |
| public void | appendString(Appendable appendable, String start, String separator, String end)
Implements org. Prints a string representation of this collection onto the given |
| public LazyBooleanIterable | asLazy()
Implements org. Returns a LazyBooleanIterable adapter wrapping the source BooleanIterable. |
| public LazyBooleanIterable | |
| public MutableBooleanList | |
| public MutableBooleanList | |
| public MutableBooleanIterator | booleanIterator()
Implements org. Returns a primitive iterator that can be used to iterate over the BooleanIterable in an imperative style. |
| public MutableList | |
| private void | |
| public RichIterable | chunk(int size)
Overrides default org. Partitions elements in fixed size chunks. |
| public void | |
| public <V> MutableList | collect(BooleanToObjectFunction<? extends V> function)
Implements org. Returns a new collection with the results of applying the specified function on each element of the source collection. |
| public boolean | contains(boolean value)
Implements org. Returns true if the value is contained in the BooleanIterable, and false if it is not. |
| public boolean | containsAll(boolean... source)
Overrides default org. Returns true if all of the values specified in the source array are contained in the BooleanIterable, and false if they are not. |
| public boolean | containsAll(BooleanIterable source)
Overrides default org. Returns true if all of the values specified in the source BooleanIterable are contained in the BooleanIterable, and false if they are not. |
| public int | count(BooleanPredicate predicate)
Implements org. Returns a count of the number of elements in the BooleanIterable that return true for the specified predicate. |
| public boolean | detectIfNone(BooleanPredicate predicate, boolean ifNone)
Implements org.
|
| public MutableBooleanList | |
| public void | each(BooleanProcedure procedure)
Implements org. A synonym for forEach. |
| public boolean | equals(Object otherList)
Overrides java. Implements org. Follows the same general contract as |
| public void | |
| public boolean | |
| public boolean | |
| public boolean | |
| private int | |
| public int | hashCode()
Overrides java. Implements org. Follows the same general contract as |
| public int | indexOf(boolean object)
Implements org.
|
| public <T> T | injectInto(T injectedValue, ObjectBooleanToObjectFunction<? super T, ? extends T> function)
Implements org.
|
| public <T> T | injectIntoWithIndex(T injectedValue, ObjectBooleanIntToObjectFunction<? super T, ? extends T> function)
Implements org.
|
| public boolean | isEmpty()
Overrides default org. Returns true if this iterable has zero items. |
| public int | lastIndexOf(boolean object)
Implements org.
|
| public String | makeString()
Overrides default org. Returns a string representation of this collection by delegating to |
| public String | makeString(String separator)
Overrides default org. Returns a string representation of this collection by delegating to |
| public String | makeString(String start, String separator, String end)
Overrides default org. Returns a string representation of this collection with the elements separated by the specified separator and enclosed between the start and end strings. |
| private IndexOutOfBoundsException | |
| public static BooleanArrayList | |
| public static BooleanArrayList | |
| public static BooleanArrayList | |
| public boolean | noneSatisfy(BooleanPredicate predicate)
Overrides default org. Returns true if none of the elements in the BooleanIterable return true for the specified predicate, otherwise returns false. |
| public boolean | notEmpty()
Overrides default org. The English equivalent of !this.isEmpty() |
| public void | readExternal(ObjectInput in)
Implements java. The object implements the readExternal method to restore its contents by calling the methods of DataInput for primitive types and readObject for objects, strings and arrays. |
| public BooleanArrayList | reject(BooleanPredicate predicate)
Implements org. Returns a new BooleanIterable with all of the elements in the BooleanIterable that return false for the specified predicate. |
| public boolean | remove(boolean value)
Implements org.
|
| public boolean | |
| public boolean | removeAll(boolean... source)
Implements org.
|
| public boolean | removeAtIndex(int index)
Implements org.
|
| public boolean | removeIf(BooleanPredicate predicate)
Overrides default org.
|
| public boolean | |
| public boolean | retainAll(boolean... source)
Implements org.
|
| public BooleanArrayList | |
| public BooleanArrayList | select(BooleanPredicate predicate)
Implements org. Returns a new BooleanIterable with all of the elements in the BooleanIterable that return true for the specified predicate. |
| public boolean | set(int index, boolean element)
Implements org.
|
| public int | size()
Implements org. Returns the number of items in this iterable. |
| public MutableBooleanList | subList(int fromIndex, int toIndex)
Implements org.
|
| public boolean[] | toArray()
Implements org. Converts the BooleanIterable to a primitive boolean array. |
| public boolean[] | toArray(boolean[] target)
Overrides default org. Converts the BooleanIterable to a primitive boolean array. |
| public MutableBooleanBag | toBag()
Implements org. Converts the BooleanIterable to a new MutableBooleanBag. |
| public ImmutableBooleanList | toImmutable()
Implements org. Returns an immutable copy of this list. |
| public MutableBooleanList | toList()
Implements org. Converts the BooleanIterable to a new MutableBooleanList. |
| public BooleanArrayList | |
| public MutableBooleanSet | toSet()
Implements org. Converts the BooleanIterable to a new MutableBooleanSet. |
| public MutableBooleanStack | toStack()
Overrides default org. Converts the collection to a BooleanStack. |
| public String | toString()
Overrides java. Implements org. Returns a string with the elements of this iterable separated by commas with spaces and enclosed in square brackets. |
| private void | |
| public BooleanArrayList | |
| public BooleanArrayList | |
| public BooleanArrayList | |
| public BooleanArrayList | |
| public BooleanArrayList | withAll(BooleanIterable elements)
Implements org.
|
| public BooleanArrayList | without(boolean element)
Implements org.
|
| public BooleanArrayList | |
| public void | writeExternal(ObjectOutput out)
Implements java. The object implements the writeExternal method to save its contents by calling the methods of DataOutput for its primitive values or calling the writeObject method of ObjectOutput for objects, strings, and arrays. |