Uses of Class
jaggregate.IdentityBag

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

Uses of IdentityBag in jaggregate
 

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

<R> IdentityBag<R>
IdentityDictionary.collect(UnaryFunctor<? super Pair<K,V>,? 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> IdentityBag<T>
IdentityBag.emptyIdentityBag()
          Creates an empty bag.
static
<T> IdentityBag<T>
IdentityBag.identityBagFrom(Collection<? extends T> elements)
          Creates a bag containing the elements in the given collection.
static
<T> IdentityBag<T>
IdentityBag.identityBagFrom(Iterable<? extends T> elements)
          Creates a bag containing the elements given by an iterable object.
static
<T> IdentityBag<T>
IdentityBag.identityBagFrom(T[] elements)
          Creates a bag containing the elements in the given array.
static
<T> IdentityBag<T>
IdentityBag.identityBagWith(T newElement, T... restOfNewElements)
          Creates a bag containing the given elements.
 IdentityBag<E> IdentityBag.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.

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

 IdentityBag<E> IdentityBag.toIdentityBag()
          Answers an identity bag with the same elements as this collection.

Answers self.

 IdentityBag<E> Collection.toIdentityBag()
          Answers an identity bag with the same elements as this collection.
 IdentityBag<E> AbstractCollection.toIdentityBag()
          Answers an identity bag 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