BooleanArrayList.
It is backed by a BitSet.
| Modifier and Type | Class and Description |
|---|---|
| private static class | |
| private class |
| Modifier and Type | Field and Description |
|---|---|
| private final BitSet | |
| private static final long | |
| private final int |
| Access | Constructor and Description |
|---|---|
| private | |
| private |
| Modifier and Type | Method and Description |
|---|---|
| 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 BooleanIterator | booleanIterator()
Implements org. Returns a primitive iterator that can be used to iterate over the BooleanIterable in an imperative style. |
| public RichIterable | chunk(int size)
Overrides default org. Partitions elements in fixed size chunks. |
| public <V> ImmutableList | 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 ImmutableBooleanList | |
| 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 | forEach(BooleanProcedure procedure)
Overrides default org. Applies the BooleanProcedure to each element in the BooleanIterable. |
| public void | |
| public boolean | |
| public boolean | |
| public boolean | |
| public int | hashCode()
Overrides java. Implements org. Follows the same general contract as |
| public int | indexOf(boolean value)
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 value)
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 ImmutableBooleanArrayList | |
| public static ImmutableBooleanArrayList | |
| public ImmutableBooleanList | newWith(boolean element)
Implements org.
|
| public ImmutableBooleanList | |
| public ImmutableBooleanList | newWithout(boolean element)
Implements org.
|
| public ImmutableBooleanList | |
| 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 ImmutableBooleanList | 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 ImmutableBooleanList | 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 int | size()
Implements org. Returns the number of items in this iterable. |
| public ImmutableBooleanList | 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 ImmutableBooleanArrayList | |
| 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 Object |