Uses of Interface
com.github.andrewoma.dexx.collection.Traversable
Packages that use Traversable
Package
Description
Dexx collections are a port of Scala's immutable, persistent collection classes to pure Java.
-
Uses of Traversable in com.github.andrewoma.dexx.collection
Subinterfaces of Traversable in com.github.andrewoma.dexx.collectionModifier and TypeInterfaceDescriptioninterface
IndexedList<E>
IndexedList
implementations guarantee fast random access to elements viaList.get(int)
.interface
Iterable<E>
Iterable
defines collections that can be accessed via anIterator
.interface
LinkedList<E>
LinkedList
implementations guarantee fast access to the head viaList.first()
and tail viaLinkedList.tail()
.interface
List<E>
List
defines an sequence of elements where the order is preserved.interface
Map<K,
V> Map
defines the interface for maps that associate keys with values.interface
Set<E>
Set defines the interface for a unique set of values as defined byObject.equals(Object)
.interface
SortedMap<K,
V> SortedMap defines the interface for maps that are sorted by their key.interface
SortedSet<E>
SortedSet
defines the interface for sets that are sorted.Classes in com.github.andrewoma.dexx.collection that implement TraversableModifier 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.class
DerivedKeyHashMap<K,
V> DerivedKeyHashMap
is aHashMap
variant where the key for theMap
is derived from the value stored.class
HashMap<K,
V> HashMap
is an implementation ofMap
based on a hash trie.class
HashSet<E>
HashSet
is an implementation ofSet
backed by aHashMap
.(package private) class
Nil<E>
Nil is the empty listclass
TreeMap<K,
V> class
TreeSet<E>
TreeSet
is an implementation ofSortedSet
backed by aTreeMap
.class
Vector<E>
Vector is a general-purpose, immutable data structure.Methods in com.github.andrewoma.dexx.collection with type parameters of type TraversableModifier and TypeMethodDescription<R extends Traversable<E>>
RConverts this collection to another collection using a builder.Methods in com.github.andrewoma.dexx.collection with parameters of type TraversableModifier and TypeMethodDescriptionBuilder.addAll
(@NotNull Traversable<E> elements) static <E> @NotNull SortedSet
<E> SortedSets.copyOf
(Comparator<? super E> comparator, Traversable<E> traversable) static <E> @NotNull IndexedList
<E> ArrayLists.copyOfTraversable
(Traversable<E> traversable) static <E> @NotNull IndexedList
<E> IndexedLists.copyOfTraversable
(Traversable<E> traversable) static <E> @NotNull LinkedList
<E> LinkedLists.copyOfTraversable
(Traversable<E> traversable) static <K,
V> @NotNull Map <K, V> Maps.copyOfTraversable
(Traversable<Pair<K, V>> traversable) static <E> @NotNull Set
<E> Sets.copyOfTraversable
(Traversable<E> traversable) static <K extends Comparable<? super K>,
V>
@NotNull SortedMap<K, V> SortedMaps.copyOfTraversable
(Traversable<Pair<K, V>> traversable) static <K,
V> @NotNull SortedMap <K, V> SortedMaps.copyOfTraversable
(Comparator<? super K> comparator, Traversable<Pair<K, V>> traversable) static <E> @NotNull SortedSet
<E> SortedSets.copyOfTraversable
(Traversable<E> traversable) static <E> @NotNull SortedSet
<E> SortedSets.copyOfTraversable
(Comparator<? super E> comparator, Traversable<E> traversable) -
Uses of Traversable in com.github.andrewoma.dexx.collection.internal.adapter
Methods in com.github.andrewoma.dexx.collection.internal.adapter with parameters of type TraversableModifier and TypeMethodDescriptionstatic <E> boolean
Adapters.contains
(@NotNull Traversable<E> traversable, Object o) static <E> boolean
Adapters.containsAll
(@NotNull Traversable<E> traversable, @NotNull Collection<?> c) static <T,
E> T[] Adapters.toArray
(@NotNull Traversable<E> traversable, T[] a) -
Uses of Traversable in com.github.andrewoma.dexx.collection.internal.base
Classes in com.github.andrewoma.dexx.collection.internal.base that implement TraversableModifier and TypeClassDescriptionclass
class
class
class
AbstractList<E>
class
AbstractMap<K,
V> class
AbstractSet<E>
class
AbstractSortedMap<K,
V> class
class
class
MappedIterable<T,
F> Methods in com.github.andrewoma.dexx.collection.internal.base with type parameters of type Traversable -
Uses of Traversable in com.github.andrewoma.dexx.collection.internal.builder
Methods in com.github.andrewoma.dexx.collection.internal.builder with parameters of type Traversable -
Uses of Traversable in com.github.andrewoma.dexx.collection.internal.hashmap
Classes in com.github.andrewoma.dexx.collection.internal.hashmap that implement Traversable