Uses of Interface
com.github.andrewoma.dexx.collection.List
-
Packages that use List Package Description com.github.andrewoma.dexx.collection Dexx collections are a port of Scala's immutable, persistent collection classes to pure Java.com.github.andrewoma.dexx.collection.internal.adapter com.github.andrewoma.dexx.collection.internal.base -
-
Uses of List in com.github.andrewoma.dexx.collection
Subinterfaces of List in com.github.andrewoma.dexx.collection Modifier and Type Interface Description interface
IndexedList<E>
IndexedList
implementations guarantee fast random access to elements viaget(int)
.interface
LinkedList<E>
LinkedList
implementations guarantee fast access to the head viafirst()
and tail viaLinkedList.tail()
.Classes in com.github.andrewoma.dexx.collection that implement List Modifier and Type Class Description class
ArrayList<E>
ArrayList
is anIndexedList
implementation backed by an array.(package private) class
Cons<E>
Cons constructs a new list by prepending a new element to an existing listclass
ConsList<E>
ConsList
is a functionalLinkedList
implementation that constructs a list by prepending an element to another list.(package private) class
Nil<E>
Nil is the empty listclass
Vector<E>
Vector is a general-purpose, immutable data structure.Methods in com.github.andrewoma.dexx.collection that return List Modifier and Type Method Description @NotNull List<E>
List. append(E elem)
Returns a list with the specified element appended to the bottom of the list.@NotNull List<E>
List. drop(int number)
Returns a list containing all elements in this list, excluding the firstnumber
of elements.@NotNull List<E>
List. prepend(E elem)
Returns a list with the specified element prepended to the top of the list.@NotNull List<E>
List. range(int from, boolean fromInclusive, int to, boolean toInclusive)
Returns a list containing a contiguous range of elements from this list.@NotNull List<E>
List. set(int i, E elem)
Returns a list with the element set to the value specified at the index (zero-based).@NotNull List<E>
ArrayList. tail()
@NotNull List<E>
List. tail()
Returns a list containing all elements in the list, excluding the first element.@NotNull List<E>
List. take(int number)
Returns a list containing the firstnumber
of elements from this list. -
Uses of List in com.github.andrewoma.dexx.collection.internal.adapter
Fields in com.github.andrewoma.dexx.collection.internal.adapter declared as List Modifier and Type Field Description private List<E>
ListAdapater. list
Constructors in com.github.andrewoma.dexx.collection.internal.adapter with parameters of type List Constructor Description ListAdapater(List<E> list)
-
Uses of List in com.github.andrewoma.dexx.collection.internal.base
Classes in com.github.andrewoma.dexx.collection.internal.base that implement List Modifier and Type Class Description class
AbstractIndexedList<E>
class
AbstractLinkedList<E>
class
AbstractList<E>
-