Uses of Class
com.strobel.collections.ImmutableList
Packages that use ImmutableList
-
Uses of ImmutableList in com.strobel.collections
Fields in com.strobel.collections declared as ImmutableListModifier and TypeFieldDescriptionListBuffer.elementsThe list of elements of this buffer.ListBuffer.lastA pointer pointing to the last, sentinel element of `elements'.ImmutableList.tailThe remainder of the list except for its first element, supposed to be immutable.Methods in com.strobel.collections that return ImmutableListModifier and TypeMethodDescriptionAppend given element at length, forming and returning a new list.ImmutableList.appendList(ImmutableList<A> x) Append given list at length, forming and returning a new list.ImmutableList.appendList(ListBuffer<A> x) Append given list buffer at length, forming and returning a new list.static <T> ImmutableList<T> ImmutableList.convert(Class<T> type, ImmutableList<?> list) static <A> ImmutableList<A> ImmutableList.empty()Construct an empty list.static <A> ImmutableList<A> ImmutableList.fill(int len, A init) Deprecated.static <A> ImmutableList<A> ImmutableList.from(A[] array) Construct a list consisting all elements of given array.static <A> ImmutableList<A> ImmutableList.of(A x1) Construct a list consisting of given element.static <A> ImmutableList<A> ImmutableList.of(A x1, A x2) Construct a list consisting of given elements.static <A> ImmutableList<A> ImmutableList.of(A x1, A... rest) Construct a list consisting of given elements.static <A> ImmutableList<A> ImmutableList.of(A x1, A x2, A x3) Construct a list consisting of given elements.static <A> ImmutableList<A> ImmutableList.of(A x1, A x2, A x3, A... rest) Construct a list consisting of given elements.Prepend given element to front of list, forming and returning a new list.ImmutableList.prependList(ImmutableList<A> xs) Prepend given list of elements to front of list, forming and returning a new list.ImmutableList.reverse()Reverse list.ImmutableList.setTail(ImmutableList<A> tail) ListBuffer.toList()Convert buffer to a list of all its elements.Methods in com.strobel.collections with parameters of type ImmutableListModifier and TypeMethodDescriptionImmutableList.appendList(ImmutableList<A> x) Append given list at length, forming and returning a new list.ListBuffer.appendList(ImmutableList<A> xs) Append all elements in a list to buffer.static <T> ImmutableList<T> ImmutableList.convert(Class<T> type, ImmutableList<?> list) static booleanImmutableList.equals(ImmutableList<?> xs, ImmutableList<?> ys) Are the two lists the same?ImmutableList.prependList(ImmutableList<A> xs) Prepend given list of elements to front of list, forming and returning a new list.ImmutableList.setTail(ImmutableList<A> tail)