| Package | Description |
|---|---|
| craterdog.collections | |
| craterdog.collections.abstractions | |
| craterdog.collections.interfaces |
| Modifier and Type | Class and Description |
|---|---|
class |
Bag<E>
This collection class implements an ordered collection that allows duplicate elements.
|
class |
Dictionary<V>
This collection class is a convenience class that implements a
Map whose keys
are always of type String. |
class |
List<E>
This collection class implements a sortable list which performs very well for both inserts and
indexed lookups of its values.
|
class |
Map<K,V>
This collection class implements a sortable collection containing key-value associations.
|
class |
Queue<E>
This collection class implements a queue (FIFO) data structure.
|
class |
Set<E>
This collection class implements an ordered collection that does not allow duplicate elements.
|
class |
Stack<E>
This collection class implements a stack (LIFO) data structure.
|
| Modifier and Type | Method and Description |
|---|---|
Iteratable<Association<K,V>> |
Map.getAssociations() |
Iteratable<? super K> |
Map.getKeys() |
Iteratable<? super V> |
Map.getValues() |
| Constructor and Description |
|---|
Dictionary(Iteratable<java.lang.String> keys,
Iteratable<V> values)
This constructor creates a new dictionary using the specified keys and values.
|
Dictionary(Iteratable<java.lang.String> keys,
Iteratable<V> values)
This constructor creates a new dictionary using the specified keys and values.
|
List(Iteratable<? extends E> elements)
This constructor creates a new list using the elements provided in a collection.
|
Map(Iteratable<K> keys,
Iteratable<V> values)
This constructor creates a new map using the specified keys and values.
|
Map(Iteratable<K> keys,
Iteratable<V> values)
This constructor creates a new map using the specified keys and values.
|
| Modifier and Type | Class and Description |
|---|---|
class |
Collection<E>
This abstract class defines the invariant methods that all collections must inherit.
|
class |
OrderedCollection<E>
This abstract class defines the invariant methods that all ordered collections must inherit.
|
class |
SortableCollection<E>
This abstract class defines the invariant methods that all sortable collections must inherit.
|
| Modifier and Type | Interface and Description |
|---|---|
interface |
Accessible<E>
This interface defines the methods that must be implemented by each collection that
allows direct access to its elements.
|
interface |
Associative<K,V>
This interface defines the methods that must be implemented by each collection that
associates a set of keys with a set of values.
|
interface |
FIFO<E>
This interface defines the methods that must be implemented by each collection that
supports a "first in, first out" access pattern.
|
interface |
Indexed<E>
This interface defines the methods that must be implemented by each collection that
its elements to be manipulated based on their indexes.
|
interface |
LIFO<E>
This interface defines the methods that must be implemented by each collection that
supports a "last in, first out" access pattern.
|
interface |
Ordered<E>
This interface defines the methods that must be implemented by each collection that
supports an implicit ordering of its elements.
|
interface |
Sortable<E>
This interface defines the methods that must be implemented by each collection that
allows its elements to be explicitly sorted.
|
| Modifier and Type | Method and Description |
|---|---|
Iteratable<Association<K,V>> |
Associative.getAssociations()
This method returns the list of associations between keys and values for this collection.
|
Iteratable<? super K> |
Associative.getKeys()
This method returns the list of keys for the associations in this collection.
|
Iteratable<? super V> |
Associative.getValues()
This method returns the list of values for the associations in this collection.
|
Copyright © 2014 Crater Dog Technologies(TM). All rights reserved.