Uses of Interface
jaggregate.UnaryFunctor

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

Uses of UnaryFunctor in jaggregate
 

Classes in jaggregate that implement UnaryFunctor
 class UnaryFunction<A,R>
          A functor that accepts one argument.
 

Fields in jaggregate declared as UnaryFunctor
static UnaryFunctor<String,Integer> Strings.LENGTH
          A function which gives the length of its argument.
 

Methods in jaggregate with parameters of type UnaryFunctor
static
<E,R> Iterable<R>
Iterables.collect(Iterable<? extends E> items, UnaryFunctor<? super E,? extends R> transformer)
          Wraps the given iterable with another iterable whose iterator will transform items using the given functor.
<R> OrderedCollection<R>
SortedCollection.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> Set<R>
Set.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> Sequence<R>
Sequence.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> ReadOnlySequence<R>
ReadOnlySequence.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> OrderedCollection<R>
OrderedCollection.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> ReadOnlySequence<R>
Interval.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> 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.

<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> ExtensibleCollection<R>
ExtensibleCollection.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> ContractibleSequence<R>
ContractibleSequence.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>
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> Bag<R>
Bag.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> AbstractSet<R>
AbstractSet.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> ExtensibleCollection<R>
AbstractExtensibleCollection.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> 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.
<R> AbstractBag<R>
AbstractBag.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.

<R> Bag<R>
Dictionary.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.

<R> AbstractBag<R>
AbstractDictionaryImpl.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.

<R> AbstractBag<R>
AbstractDictionary.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.
<R> IdentityDictionary<K,R>
IdentityDictionary.collectValues(UnaryFunctor<? super V,? extends R> transformer)
          Answers a new dictionary whose keys are this dictionary's keys, and whose corresponding elements are the results of evaluating the given transformer with each corresponding element of this dictionary. For each of this dictionary's keys, a new element is obtained by evaluating transformer with the corresponding element of this dictionary as a parameter.

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

<R> Dictionary<K,R>
Dictionary.collectValues(UnaryFunctor<? super V,? extends R> transformer)
          Answers a new dictionary whose keys are this dictionary's keys, and whose corresponding elements are the results of evaluating the given transformer with each corresponding element of this dictionary. For each of this dictionary's keys, a new element is obtained by evaluating transformer with the corresponding element of this dictionary as a parameter.

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

<R> AbstractDictionary<K,R>
AbstractDictionaryImpl.collectValues(UnaryFunctor<? super V,? extends R> transformer)
          Answers a new dictionary whose keys are this dictionary's keys, and whose corresponding elements are the results of evaluating the given transformer with each corresponding element of this dictionary.
<R> AbstractDictionary<K,R>
AbstractDictionary.collectValues(UnaryFunctor<? super V,? extends R> transformer)
          Answers a new dictionary whose keys are this dictionary's keys, and whose corresponding elements are the results of evaluating the given transformer with each corresponding element of this dictionary.
 void SortedCollection.forEachDo(UnaryFunctor<? super E,?> operation)
          For each element of this collection, evaluates the given operation with the element as the parameter.
 void ReadOnlySequence.forEachDo(UnaryFunctor<? super E,?> operation)
          For each element of this collection, evaluates the given operation with the element as the parameter.

operation is evaluated with each element of this sequence in indexed order starting at 0.

 void OrderedCollection.forEachDo(UnaryFunctor<? super E,?> operation)
          For each element of this collection, evaluates the given operation with the element as the parameter.
 void Interval.forEachDo(UnaryFunctor<? super E,?> operation)
          For each element of this collection, evaluates the given operation with the element as the parameter.
 void Collection.forEachDo(UnaryFunctor<? super E,?> operation)
          For each element of this collection, evaluates the given operation with the element as the parameter.
 void AbstractSet.forEachDo(UnaryFunctor<? super E,?> operation)
          For each element of this collection, evaluates the given operation with the element as the parameter.
 void AbstractBag.forEachDo(UnaryFunctor<? super E,?> operation)
          For each element of this collection, evaluates the given operation with the element as the parameter.
<R> void
ReadStream.forEachDo(UnaryFunctor<? super E,? extends R> operation)
          Evaluates the given operation with each of this stream's future sequence values, terminating evaluation when there are no more future sequence values.
<R> void
GettableStream.forEachDo(UnaryFunctor<? super E,? extends R> operation)
          Evaluates the given operation with each of this stream's future sequence values, terminating evaluation when there are no more future sequence values.
 void AbstractDictionaryImpl.forEachDo(UnaryFunctor<? super Pair<K,V>,?> operation)
          For each element of this collection, evaluates the given operation with the element as the parameter.
 void SortedCollection.forEachInRangeDo(int start, int stop, UnaryFunctor<? super E,?> operation)
          For those elements of this sequence between two given positions, inclusive, evaluates the given operation with the element at that index as its argument.
 void ReadOnlySequence.forEachInRangeDo(int start, int stop, UnaryFunctor<? super E,?> operation)
          For those elements of this sequence between two given positions, inclusive, evaluates the given operation with the element at that index as its argument.
 void OrderedCollection.forEachInRangeDo(int start, int stop, UnaryFunctor<? super E,?> operation)
          For those elements of this sequence between two given positions, inclusive, evaluates the given operation with the element at that index as its argument.
 void Interval.forEachInRangeDo(int start, int stop, UnaryFunctor<? super E,?> operation)
          For those elements of this sequence between two given positions, inclusive, evaluates the given operation with the element at that index as its argument.
 void SortedCollection.forEachInReverseDo(UnaryFunctor<? super E,?> operation)
          Evaluates the given operation with each element of this sequence in the reverse of this sequence's standard traversal order.
 void ReadOnlySequence.forEachInReverseDo(UnaryFunctor<? super E,?> operation)
          Evaluates the given operation with each element of this sequence in the reverse of this sequence's standard traversal order.
 void OrderedCollection.forEachInReverseDo(UnaryFunctor<? super E,?> operation)
          Evaluates the given operation with each element of this sequence in the reverse of this sequence's standard traversal order.
 void Interval.forEachInReverseDo(UnaryFunctor<? super E,?> operation)
          Evaluates the given operation with each element of this sequence in the reverse of this sequence's standard traversal order.
<R> void
AbstractDictionaryImpl.keysDo(UnaryFunctor<? super K,? extends R> operation)
          Iteratively evaluates the given operation with each of this dictionary's keys at which there are elements stored.
<R> void
AbstractDictionary.keysDo(UnaryFunctor<? super K,? extends R> operation)
          Iteratively evaluates the given operation with each of this dictionary's keys at which there are elements stored.
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.
 



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