Uses of Interface
com.github.andrewoma.dexx.collection.List
Packages that use List
Package
Description
Dexx collections are a port of Scala's immutable, persistent collection classes to pure Java.
-
Uses of List in com.github.andrewoma.dexx.collection
Subinterfaces of List in com.github.andrewoma.dexx.collectionModifier and TypeInterfaceDescriptioninterface
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 ListModifier and TypeClassDescriptionclass
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 ListModifier and TypeMethodDescriptionReturns a list with the specified element appended to the bottom of the list.List.drop
(int number) Returns a list containing all elements in this list, excluding the firstnumber
of elements.Returns a list with the specified element prepended to the top of the list.List.range
(int from, boolean fromInclusive, int to, boolean toInclusive) Returns a list containing a contiguous range of elements from this list.Returns a list with the element set to the value specified at the index (zero-based).ArrayList.tail()
List.tail()
Returns a list containing all elements in the list, excluding the first element.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 ListConstructors in com.github.andrewoma.dexx.collection.internal.adapter with parameters of type List -
Uses of List in com.github.andrewoma.dexx.collection.internal.base
Classes in com.github.andrewoma.dexx.collection.internal.base that implement List