public static final class ImmutableArray.JavaBasedImmutableArray<E> extends java.lang.Object implements ImmutableArray<E>, java.io.Serializable
ImmutableArray.JavaBasedImmutableArray<E>Sequence.µ| Modifier and Type | Method and Description |
|---|---|
ImmutableArray<E> |
append(E element) |
ImmutableArray<E> |
appendAll(Sequence<E> other) |
boolean |
contains(E element) |
boolean |
equals(java.lang.Object obj) |
E |
get(int position) |
int |
hashCode() |
ImmutableArray<E> |
insert(int position,
E element) |
ImmutableArray<E> |
insertAll(int position,
Sequence<E> elements) |
java.util.Iterator<E> |
iterator() |
ImmutableArray<E> |
remove(E element) |
ImmutableArray<E> |
remove(int position) |
ImmutableArray<E> |
removeAll(Sequence<E> other) |
ImmutableArray<E> |
replace(int position,
E element) |
ImmutableArray<E> |
reverse() |
int |
size() |
ImmutableArray<E> |
sort(java.util.Comparator<E> comparator) |
java.util.List<E> |
toList() |
java.lang.String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitdrop, empty, filter, flatMap, from, from, map, ofpublic ImmutableArray<E> reverse()
public java.util.Iterator<E> iterator()
iterator in interface java.lang.Iterable<E>public ImmutableArray<E> append(E element)
public ImmutableArray<E> remove(E element)
public ImmutableArray<E> appendAll(Sequence<E> other)
public ImmutableArray<E> removeAll(Sequence<E> other)
public ImmutableArray<E> sort(java.util.Comparator<E> comparator)
sort in interface ImmutableArray<E>public E get(int position)
get in interface ImmutableArray<E>public ImmutableArray<E> replace(int position, E element)
replace in interface ImmutableArray<E>public ImmutableArray<E> remove(int position)
remove in interface ImmutableArray<E>public ImmutableArray<E> insert(int position, E element)
insert in interface ImmutableArray<E>public ImmutableArray<E> insertAll(int position, Sequence<E> elements)
insertAll in interface ImmutableArray<E>public java.util.List<E> toList()
toList in interface ImmutableArray<E>public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object