Uses of Class
jaggregate.IdentitySet

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

Uses of IdentitySet in jaggregate
 

Methods in jaggregate that return IdentitySet
<R> IdentitySet<R>
IdentitySet.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.

The elements are traversed in the order specified by forEachDo for this collection.

Unless specifically refined, this message is defined to answer an object conforming to the same protocol as this collection.

static
<T> IdentitySet<T>
IdentitySet.emptyIdentitySet()
          Creates an empty set.
static
<T> IdentitySet<T>
IdentitySet.identitySetFrom(Collection<? extends T> elements)
          Creates a set containing the elements in the given collection.
static
<T> IdentitySet<T>
IdentitySet.identitySetFrom(Iterable<? extends T> elements)
          Creates a set containing the elements given by an iterable object.
static
<T> IdentitySet<T>
IdentitySet.identitySetFrom(T[] elements)
          Creates a set containing the elements in the given array.
static
<T> IdentitySet<T>
IdentitySet.identitySetWith(T newElement, T... restOfNewElements)
          Creates a set containing the given elements.
 IdentitySet<E> IdentitySet.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.

For each element of this collection, discriminator is evaluated with the element as the parameter. Each element which causes discriminator to answer false is included in the new collection.

The elements are traversed in the order specified by forEachDo for this collection.

Unless specifically refined, this message is defined to answer an object conforming to the same protocol as this collection. If both this collection and the result maintain an ordering of their elements, the elements of the result will be in the same relative order as the elements of this collection.

 IdentitySet<E> IdentitySet.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.

For each element of this collection, discriminator is evaluated with the element as the parameter. Each element which causes discriminator to answer true is included in the new collection.

The elements are traversed in order specified by forEachDo for this collection.

Unless specifically refined, this message is defined to answer an object conforming to the same protocol as this collection. If both this collection and the result maintain an ordering of their elements, the elements of the result will be in the same relative order as the elements of this collection.

 IdentitySet<E> IdentitySet.toIdentitySet()
          Answers an identity set with the same elements as this collection. Since sets do not store duplicate elements, the result may have fewer elements than this collection.

Answers self.

 IdentitySet<E> Collection.toIdentitySet()
          Answers an identity set with the same elements as this collection.
 IdentitySet<E> AbstractCollection.toIdentitySet()
          Answers an identity set with the same elements as this collection.
 



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