Uses of Interface
jaggregate.ReadOnlySequence

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

Uses of ReadOnlySequence in jaggregate
 

Classes in jaggregate with type parameters of type ReadOnlySequence
 class CollectionStream<E,S extends ReadOnlySequence<E>>
          Represents a stream that has a ReadOnlySequence as its stream backing store.
 interface GettableStream<E,S extends ReadOnlySequence<E>>
          Provides protocol for a stream that can read objects from its future sequence values.
 interface Stream<E,S extends ReadOnlySequence<E>>
          Provides protocol for a stream consisting of a finite number of past and future sequence values.
 

Subinterfaces of ReadOnlySequence in jaggregate
 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 ReadOnlySequence
 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 SortedCollection<E>
          Represents a variable-sized collection of objects whose elements are ordered based on a sort order.
 

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

 ReadOnlySequence<E> ReadOnlySequence.concat(ReadOnlySequence<? extends E> otherSequence)
          Answers a new sequence containing all of this sequence's elements in their original order followed by all of the elements of the given sequence, in their original order.
 ReadOnlySequence<E> Interval.concat(ReadOnlySequence<? extends E> otherSequence)
          Answers a new sequence containing all of this sequence's elements in their original order followed by all of the elements of the given sequence, in their original order.
 ReadOnlySequence<E> ReadOnlySequence.copyRange(int start, int stop)
          Answers a new sequence containing the specified range of elements of this sequence in their original order.
 ReadOnlySequence<E> Interval.copyRange(int start, int stop)
          Answers a new sequence containing the specified range of elements of this sequence in their original order.
 ReadOnlySequence<E> ReadOnlySequence.copyWith(E newElement)
          Answers a new sequence with size one greater than the size of this sequence, containing the elements of this sequence and a given new element placed at the end.
 ReadOnlySequence<E> Interval.copyWith(E newElement)
          Answers a new sequence with size one greater than the size of this sequence, containing the elements of this sequence and a given new element placed at the end.
 ReadOnlySequence<E> ReadOnlySequence.copyWithout(E oldElement)
          Answers a new sequence with all of the elements of this sequence that are not equivalent to the given element, in their original order.
 ReadOnlySequence<E> Interval.copyWithout(E oldElement)
          Answers a new sequence with all of the elements of this sequence that are not equivalent to the given element, in their original order.
 ReadOnlySequence<E> ReadOnlySequence.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.
 ReadOnlySequence<E> Interval.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.

 ReadOnlySequence<E> SortedCollection.reverse()
          Answers a sequence with the elements of this sequence arranged in reverse order.
 ReadOnlySequence<E> ReadOnlySequence.reverse()
          Answers a sequence with the elements of this sequence arranged in reverse order.
 ReadOnlySequence<E> Interval.reverse()
          Answers a sequence with the elements of this sequence arranged in reverse order.
 ReadOnlySequence<E> ReadOnlySequence.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.
 ReadOnlySequence<E> Interval.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.

 

Methods in jaggregate with parameters of type ReadOnlySequence
 SortedCollection<E> SortedCollection.concat(ReadOnlySequence<? extends E> otherSequence)
          Answers a new sequence containing all of this sequence's elements in their original order followed by all of the elements of the given sequence, in their original order.

Since this collection sorts its elements, the result will also be sorted as defined by this collection's comparator.

 Sequence<E> Sequence.concat(ReadOnlySequence<? extends E> otherSequence)
          Answers a new sequence containing all of this sequence's elements in their original order followed by all of the elements of the given sequence, in their original order.
 ReadOnlySequence<E> ReadOnlySequence.concat(ReadOnlySequence<? extends E> otherSequence)
          Answers a new sequence containing all of this sequence's elements in their original order followed by all of the elements of the given sequence, in their original order.
 OrderedCollection<E> OrderedCollection.concat(ReadOnlySequence<? extends E> otherSequence)
          Answers a new sequence containing all of this sequence's elements in their original order followed by all of the elements of the given sequence, in their original order.
 ReadOnlySequence<E> Interval.concat(ReadOnlySequence<? extends E> otherSequence)
          Answers a new sequence containing all of this sequence's elements in their original order followed by all of the elements of the given sequence, in their original order.
<T> void
SortedCollection.doWithOthers(ReadOnlySequence<? extends T> otherSequence, BinaryFunctor<? super E,? super T,?> operation)
          For each element of this sequence and the corresponding element of the given sequence, evaluates the given operation with this sequence's element as the first parameter, and the element of the other sequence as the second parameter.
<T> void
ReadOnlySequence.doWithOthers(ReadOnlySequence<? extends T> otherSequence, BinaryFunctor<? super E,? super T,?> operation)
          For each element of this sequence and the corresponding element of the given sequence, evaluates the given operation with this sequence's element as the first parameter, and the element of the other sequence as the second parameter.
<T> void
OrderedCollection.doWithOthers(ReadOnlySequence<? extends T> otherSequence, BinaryFunctor<? super E,? super T,?> operation)
          For each element of this sequence and the corresponding element of the given sequence, evaluates the given operation with this sequence's element as the first parameter, and the element of the other sequence as the second parameter.
<T> void
Interval.doWithOthers(ReadOnlySequence<? extends T> otherSequence, BinaryFunctor<? super E,? super T,?> operation)
          For each element of this sequence and the corresponding element of the given sequence, evaluates the given operation with this sequence's element as the first parameter, and the element of the other sequence as the second parameter.
 int SortedCollection.indexOf(ReadOnlySequence<? extends E> targetSequence, int start)
          Answers the index of the first element of this sequence which is the start of a subsequence which matches a given target sequence.
 int ReadOnlySequence.indexOf(ReadOnlySequence<? extends E> targetSequence, int start)
          Answers the index of the first element of this sequence which is the start of a subsequence which matches a given target sequence.
 int OrderedCollection.indexOf(ReadOnlySequence<? extends E> targetSequence, int start)
          Answers the index of the first element of this sequence which is the start of a subsequence which matches a given target sequence.
 int Interval.indexOf(ReadOnlySequence<? extends E> targetSequence, int start)
          Answers the index of the first element of this sequence which is the start of a subsequence which matches a given target sequence.
static
<T> ReadStream<T>
ReadStream.readStreamOver(ReadOnlySequence<T> backingStore)
          Creates a new stream over the given backing sequence.
 void Sequence.replaceRange(int start, int stop, ReadOnlySequence<? extends E> replacements)
          Replaces the elements of this sequence between two positions, inclusive, with a given replacement sequence in their original order.
 void OrderedCollection.replaceRange(int start, int stop, ReadOnlySequence<? extends E> replacements)
          Replaces the elements of this sequence between two positions, inclusive, with a given replacement sequence in their original order.
 void Sequence.replaceRange(int start, int stop, ReadOnlySequence<? extends E> replacements, int replacementStart)
          Replaces the elements of this sequence between two positions, inclusive, with a given replacement sequence, in their original order, starting at a given position in the replacement sequence.
 void OrderedCollection.replaceRange(int start, int stop, ReadOnlySequence<? extends E> replacements, int replacementStart)
          Replaces the elements of this sequence between two positions, inclusive, with a given replacement sequence, in their original order, starting at a given position in the replacement sequence.
 

Constructors in jaggregate with parameters of type ReadOnlySequence
ReadStream(ReadOnlySequence<E> backingStore)
          Creates a new stream over the given backing sequence.
 



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