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 interfaceIndexedList<E>IndexedListimplementations guarantee fast random access to elements viaget(int).interfaceLinkedList<E>LinkedListimplementations 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 classArrayList<E>ArrayListis anIndexedListimplementation backed by an array.(package private) classCons<E>Cons constructs a new list by prepending a new element to an existing listclassConsList<E>ConsListis a functionalLinkedListimplementation that constructs a list by prepending an element to another list.(package private) classNil<E>Nil is the empty listclassVector<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 firstnumberof 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 firstnumberof 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. listConstructors 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 classAbstractIndexedList<E>classAbstractLinkedList<E>classAbstractList<E>
-