Uses of Interface
jaggregate.Collection

Packages that use Collection
jaggregate Jaggregate is a J2SE 5.0-aware collections library that is modeled after the ANSI Smalltalk collection protocols. 
 

Uses of Collection in jaggregate
 

Subinterfaces of Collection in jaggregate
 interface AbstractDictionary<K,V>
          Provides protocol for accessing, adding, removing, and iterating over the elements of an unordered collection whose elements are accessed using an explicitly assigned external key.
 interface ContractibleSequence<E>
          Provides protocol for removing elements from an ordered collection of objects, whose elements can be accessed using external keys.
 interface ExtensibleCollection<E>
          Provides protocol for adding elements to and removing elements from a variable-sized collection.
 interface ReadOnlySequence<E>
          Provides protocol for reading an ordered collection of objects whose elements can be accessed using external integer keys.
 interface Sequence<E>
          Provides protocol for writing to an ordered collection of objects whose elements can be accessed using external integer keys.
 

Classes in jaggregate that implement Collection
 class AbstractBag<E>
          Represents an unordered, variable-sized collection whose elements can be added or removed, but cannot be individually accessed by external keys.
 class AbstractCollection<E>
          Implementation of the collection concept that should be common for most concrete implementations.
 class AbstractDictionaryImpl<K,V>
          Implementation of the dictionary concept that should be common for most concrete implementations.
 class AbstractExtensibleCollection<E>
          Implementation of the extensible collection concept that should be common for most concrete implementations.
 class AbstractSet<E>
          Represents an unordered, variable-sized collection whose elements can be added or removed, but cannot be individually accessed by external keys.
 class Bag<E>
          A bag for which equivalence is defined by equals.
 class Dictionary<K,V>
          Represents an unordered collection whose elements can be accessed using an explicitly assigned external key.
 class IdentityBag<E>
          A bag for which equivalence is defined by ==.
 class IdentityDictionary<K,V>
          Represents an unordered collection whose elements can be accessed using an explicitly assigned external key.
 class IdentitySet<E>
          A set for which equivalence is defined by ==.
 class Interval<E extends Number>
          Represents a collection whose elements form an arithmetic progression.
 class NaturallySortedCollection<E extends Comparable<? super E>>
          Represents a variable-sized collection of objects whose elements are ordered based on the natural ordering of its elements, as defined by the interface Comparable.
 class OrderedCollection<E>
          Represents an ordered, variable-sized collection of objects, where elements may be added, removed, or inserted, and can be accessed using external integer keys.
 class Set<E>
          A set for which equivalence is defined by equals.
 class SortedCollection<E>
          Represents a variable-sized collection of objects whose elements are ordered based on a sort order.
 

Methods in jaggregate that return Collection
<R> Collection<R>
Collection.collect(UnaryFunctor<? super E,? extends R> transformer)
          Evaluates the given transformer for each element of this collection, with the element as the parameter, and answers a new collection containing the results of these evaluations.
<R> Collection<R>
AbstractCollection.collect(UnaryFunctor<? super E,? extends R> transformer)
          Evaluates the given transformer for each element of this collection, with the element as the parameter, and answers a new collection containing the results of these evaluations.
 Collection<E> Collection.reject(UnaryCondition<? super E> discriminator)
          Answers a new collection which contains only the elements in this collection which cause the given discriminator to answer false.
 Collection<E> AbstractCollection.reject(UnaryCondition<? super E> discriminator)
          Answers a new collection which contains only the elements in this collection which cause the given discriminator to answer false.
 Collection<E> Collection.select(UnaryCondition<? super E> discriminator)
          Answers a new collection which contains only the elements in this collection which cause the given discriminator to answer true.
 Collection<E> AbstractCollection.select(UnaryCondition<? super E> discriminator)
          Answers a new collection which contains only the elements in this collection which cause the given discriminator to answer true.
 

Methods in jaggregate with parameters of type Collection
 void ExtensibleCollection.addAll(Collection<? extends E> newElements)
          Adds each element of the given collection to this collection.
 void AbstractExtensibleCollection.addAll(Collection<? extends E> newElements)
          Adds each element of the given collection to this collection.
 void OrderedCollection.addAllAfter(Collection<? extends E> newElements, E target)
          Adds each element of the given collection to this collection immediately after the first element in this collection which is equivalent to a given target.
 void OrderedCollection.addAllAfterIndex(Collection<? extends E> newElements, int index)
          Adds each element of the given collection to this collection immediately following the element at the given index.
 void OrderedCollection.addAllBefore(Collection<? extends E> newElements, E target)
          Adds each element of the given collection to this collection immediately before the first element in this collection which is equivalent to a given target.
 void OrderedCollection.addAllBeforeIndex(Collection<? extends E> newElements, int index)
          Adds each element of the given collection to this collection immediately preceding the element at the given index.
 void OrderedCollection.addAllFirst(Collection<? extends E> newElements)
          Adds each element of the given collection to the beginning of this collection's elements.
 void OrderedCollection.addAllLast(Collection<? extends E> newElements)
          Adds each element of the given collection to the end of this collection's elements.
static
<T> Bag<T>
Bag.bagFrom(Collection<? extends T> elements)
          Creates a bag containing the elements in the given collection.
static
<T> IdentityBag<T>
IdentityBag.identityBagFrom(Collection<? extends T> elements)
          Creates a bag containing the elements in the given collection.
static
<T> IdentitySet<T>
IdentitySet.identitySetFrom(Collection<? extends T> elements)
          Creates a set containing the elements in the given collection.
static
<T extends Comparable<? super T>>
NaturallySortedCollection<T>
NaturallySortedCollection.naturallySortedCollectionFrom(Collection<? extends T> newElements)
          Creates a naturally sorted collection containing the elements from the given collection.
 void WriteStream.nextPutAll(Collection<? extends E> newElements)
          Enumerates the given collection, adding each new element to this stream.
 void PuttableStream.nextPutAll(Collection<? extends E> newElements)
          Enumerates the given collection, adding each new element to this stream.
static
<T> OrderedCollection<T>
OrderedCollection.orderedCollectionFrom(Collection<? extends T> elements)
          Creates an ordered collection containing the elements in the given collection.
 void Sequence.putAtAll(Collection<? extends Integer> indices, E newElement)
          Replaces the elements in this sequence specified by the given indices with a new element.
 void OrderedCollection.putAtAll(Collection<? extends Integer> indices, E newElement)
          Replaces the elements in this sequence specified by the given indices with a new element.
 boolean ExtensibleCollection.removeAll(Collection<? extends E> oldElements)
          For each element in the given collection, removes the first element from this collection which is equivalent to this element.
 boolean AbstractExtensibleCollection.removeAll(Collection<? extends E> oldElements)
          For each element in the given collection, removes the first element from this collection which is equivalent to this element.
 void AbstractDictionaryImpl.removeAllKeys(Collection<? extends K> oldKeys)
          Removes any elements from this dictionary which are stored at any of the given keys.
 void AbstractDictionary.removeAllKeys(Collection<? extends K> oldKeys)
          Removes any elements from this dictionary which are stored at any of the given keys.
 boolean ExtensibleCollection.retainAll(Collection<? extends E> keepers)
          Removes each element of this collection that is not contained in the given collection.
 boolean AbstractExtensibleCollection.retainAll(Collection<? extends E> keepers)
          Removes each element of this collection that is not contained in the given collection.
 boolean IdentityDictionary.retainAll(Collection<? extends Pair<K,V>> keepers)
          Removes each element of this collection that is not contained in the given collection.

Note that if the given collection is empty, this method has the effect of "clearing" this collection.

 boolean AbstractDictionaryImpl.retainAllKeys(Collection<? extends K> keepers)
          Removes any elements from this dictionary which are not stored at any of the given keys.
 boolean AbstractDictionary.retainAllKeys(Collection<? extends K> keepers)
          Removes any elements from this dictionary which are not stored at any of the given keys.
static
<T> Set<T>
Set.setFrom(Collection<? extends T> elements)
          Creates a set containing the elements in the given collection.
static
<T> SortedCollection<T>
SortedCollection.sortedCollectionFrom(Comparator<? super T> comparator, Collection<? extends T> newElements)
          Creates a sorted collection whose elements are sorted using the given comparator, and containing the elements of the given collection.
static
<T,E extends T>
T[]
Collections.toArray(Collection<E> collection, Class<T> componentType)
          Answers an array with the same elements as the given collection, with the same size as the collection, and a component type of the given class.
static
<E,V> Dictionary<E,V>
Collections.toDictionary(Collection<E> elements, UnaryFunctor<? super E,? extends V> mapper)
          Answers a dictionary whose keys are the elements of the given collection and whose values are the results of applying the given mapper to the associated element from the collection.
static
<E,V> IdentityDictionary<E,V>
Collections.toIdentityDictionary(Collection<E> elements, UnaryFunctor<? super E,? extends V> mapper)
          Answers a dictionary whose keys are the elements of the given collection and whose values are the results of applying the given mapper to the associated element from the collection.
 

Constructors in jaggregate with parameters of type Collection
Bag(Collection<? extends E> elements)
          Creates a bag containing the elements in the given collection.
IdentityBag(Collection<? extends E> elements)
          Creates a bag containing the elements in the given collection.
IdentitySet(Collection<? extends E> elements)
          Creates a set containing the elements in the given collection.
NaturallySortedCollection(Collection<? extends E> newElements)
          Creates a naturally sorted collection containing the elements from the given collection.
OrderedCollection(Collection<? extends E> elements)
          Creates an ordered collection containing the elements in the given collection.
Set(Collection<? extends E> elements)
          Creates a set containing the elements in the given collection.
SortedCollection(Comparator<? super E> comparator, Collection<? extends E> newElements)
          Creates a sorted collection whose elements are sorted using the given comparator, and containing the elements of the given collection.
 



© Copyright 2004-2008 Paul R. Holser, Jr. All rights reserved. Licensed under the Academic Free License version 3.0. pholser@alumni.rice.edu