public class ImmutableCollection<T> extends ImmutableCollectionBase<T,T> implements Collection<T>
array, emptyArray, length| Constructor and Description |
|---|
ImmutableCollection(T[] array) |
ImmutableCollection(T[] array,
int length) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(Object o) |
static <TT> boolean |
contains(TT[] array,
int length,
Object o) |
Iterator<T> |
iterator() |
Object[] |
toArray() |
<TT> TT[] |
toArray(TT[] a) |
add, addAll, containsAll, remove, removeAll, retainAll, toStringclear, isEmpty, sizeclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitadd, addAll, clear, containsAll, equals, hashCode, isEmpty, parallelStream, remove, removeAll, removeIf, retainAll, size, spliterator, streampublic ImmutableCollection(T[] array, int length)
public ImmutableCollection(T[] array)
public boolean contains(Object o)
contains in interface Collection<T>public Object[] toArray()
toArray in interface Collection<T>public <TT> TT[] toArray(TT[] a)
toArray in interface Collection<T>public static <TT> boolean contains(TT[] array,
int length,
Object o)
Copyright © 2021. All rights reserved.