public static final class Conversions.WrappedBooleanArray
extends java.util.AbstractList<java.lang.Boolean>
implements java.util.RandomAccess
| Modifier | Constructor and Description |
|---|---|
protected |
WrappedBooleanArray(boolean[] array)
Internal constructor for
Conversions.WrappedBooleanArray. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(java.lang.Object o) |
static Conversions.WrappedBooleanArray |
create(boolean[] array)
Creates a new
Conversions.WrappedBooleanArray that is backed by the given primitive array. |
java.lang.Boolean |
get(int index) |
int |
indexOf(java.lang.Object o) |
boolean[] |
internalToArray()
Returns the underlying array in an unsafe manner.
|
int |
lastIndexOf(java.lang.Object o) |
java.lang.Boolean |
set(int index,
java.lang.Boolean element) |
int |
size() |
add, add, addAll, clear, equals, hashCode, iterator, listIterator, listIterator, remove, removeRange, subListaddAll, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitprotected WrappedBooleanArray(boolean[] array)
Conversions.WrappedBooleanArray.array - the to-be-wrapped array. May be null which will cause any method on the created
object to fail with a NullPointerException.@Pure public static Conversions.WrappedBooleanArray create(boolean[] array)
Conversions.WrappedBooleanArray that is backed by the given primitive array.array - the to-be-wrapped array. May be null which will cause any method on the resulting
object to fail.null.public java.lang.Boolean get(int index)
get in interface java.util.List<java.lang.Boolean>get in class java.util.AbstractList<java.lang.Boolean>java.lang.NullPointerException - if the wrapped array was null.java.lang.IndexOutOfBoundsExceptionpublic java.lang.Boolean set(int index,
java.lang.Boolean element)
set in interface java.util.List<java.lang.Boolean>set in class java.util.AbstractList<java.lang.Boolean>java.lang.NullPointerException - if the wrapped array was null.java.lang.ClassCastExceptionjava.lang.NullPointerExceptionjava.lang.IllegalArgumentExceptionjava.lang.IndexOutOfBoundsExceptionpublic int indexOf(java.lang.Object o)
indexOf in interface java.util.List<java.lang.Boolean>indexOf in class java.util.AbstractList<java.lang.Boolean>java.lang.NullPointerException - if the wrapped array was null.public int lastIndexOf(java.lang.Object o)
lastIndexOf in interface java.util.List<java.lang.Boolean>lastIndexOf in class java.util.AbstractList<java.lang.Boolean>java.lang.NullPointerException - if the wrapped array was null.public boolean contains(java.lang.Object o)
contains in interface java.util.Collection<java.lang.Boolean>contains in interface java.util.List<java.lang.Boolean>contains in class java.util.AbstractCollection<java.lang.Boolean>java.lang.NullPointerException - if the wrapped array was null.public int size()
size in interface java.util.Collection<java.lang.Boolean>size in interface java.util.List<java.lang.Boolean>size in class java.util.AbstractCollection<java.lang.Boolean>java.lang.NullPointerException - if the wrapped array was null.public boolean[] internalToArray()
null if the list was created
with a null argument.