Package org.apache.pivot.collections
Defines a set of classes and interfaces that serve as generic collections as well as the data model for UI components.
-
Interface Summary Interface Description Collection<T> Root interface in collection hierarchy.Dictionary<K,V> Interface representing a set of key/value pairs.Group<E> Interface representing a group of unique elements.List<T> Collection interface representing an ordered sequence of items.List.ItemIterator<T> Optional item iterator interface.ListListener<T> List listener interface.Map<K,V> Collection interface representing set of key/value pairs.MapListener<K,V> Map listener interface.Queue<T> Interface representing a first-in, first-out (FIFO) queue when unsorted, and a priority queue when sorted.QueueListener<T> Queue listener interface.Sequence<T> Interface representing an ordered sequence of items.Sequence.Tree.ItemIterator<T> Nested sequence item iterator interface.Set<E> Collection interface representing a group of unique elements.SetListener<E> Set listener interface.Stack<T> Interface representing a last-in, first-out (LIFO) stack when unsorted, and a priority stack when sorted.StackListener<T> Stack listener interface. -
Class Summary Class Description ArrayAdapter<T> A read-only implementation of theSequence
interface that wraps an array.ArrayList<T> Implementation of theList
interface that is backed by an array.ArrayQueue<T> ArrayStack<T> Dictionary.Pair<K,V> Class representing a key/value pair.EnumList<E extends java.lang.Enum<E>> A read-only implementation of theList
interface that is backed by an enum.EnumMap<E extends java.lang.Enum<E>,V> Implementation of theMap
interface whose keys are backed by an enum.EnumSet<E extends java.lang.Enum<E>> Implementation of theSet
interface that is backed by an array of enum values.HashMap<K,V> Implementation of theMap
interface that is backed by a hash table.HashSet<E> Implementation of theSet
interface that is backed by a hash table.LinkedList<T> Implementation of theList
interface that is backed by a linked list.LinkedQueue<T> Implementation of theQueue
interface that is backed by a linked list.LinkedStack<T> Implementation of theStack
interface that is backed by a linked list.List.ListListenerList<T> List listener list.ListListener.Adapter<T> Deprecated. Since 2.1 and Java 8 the interface itself has default implementations.MapListener.Adapter<K,V> Deprecated. Since 2.1 and Java 8 the interface itself has default implementations.MapListener.Listeners<K,V> Map listeners.QueueListener.Adapter<T> Deprecated. Since 2.1 and Java 8 the interface itself has default implementations.QueueListener.Listeners<T> Queue listeners.ReadOnlySequence<T> A read-only implementation of theSequence
interface that can be used to easily implement other read-only sequences, lists, adapters, etc.Sequence.Tree<T> Collection of static utility methods providing path access to nested sequence data.Sequence.Tree.ImmutablePath Class representing an immutable path.Sequence.Tree.Path An object representing a path to a nested node in nested sequence data.SetListener.Adapter<E> Deprecated. Since 2.1 and Java 8 the interface itself has default implementations.SetListener.Listeners<E> Set listeners.StackListener.Adapter<T> Deprecated. Since 2.1 and Java 8 the interface itself has default implementations.StackListener.Listeners<T> Stack listeners.