| java.lang.Object net.sf.jga.algorithms.Find
Find | public class Find (Code) | | Algorithms that return an iterator pointing at the first/next element of the input
that meets some condition.
|
Method Summary | |
public static UnaryFunctor<T, Boolean> | elementOf(T[] values) | public static UnaryFunctor<T, Boolean> | elementOf(Collection<? extends T> values) | public static UnaryFunctor<T, Boolean> | elementOf(T[] values, Comparator<? super T> comp) | public static UnaryFunctor<T, Boolean> | elementOf(Collection<? extends T> values, Comparator<? super T> comp) | public static UnaryFunctor<T, Boolean> | elementOf(T[] values, BinaryFunctor<T, T, Boolean> bf) | public static UnaryFunctor<T, Boolean> | elementOf(Collection<? extends T> values, BinaryFunctor<T, T, Boolean> bf) | public static Iterator<T> | find(T[] ts, T value) Finds an arbitrary value in the array using the equals() method.
an iterator whose next() [if it hasNext()]will return the first instance of the value. | public static Iterator<T> | find(T[] ts, T value, Comparator<? super T> comp) Finds an arbitrary value in the array using the given Comparator.
an iterator whose next() [if it hasNext()]will return the first instance of the value. | public static Iterator<T> | find(T[] ts, T value, Equality<T> eq) Finds an arbitrary value in the array using the given Equality operator.
an iterator whose next() [if it hasNext()]will return the first instance of the value. | public static Iterator<T> | find(T[] ts, UnaryFunctor<T, Boolean> fn) Finds a value in the input for which the given function returns TRUE.
an iterator whose next() [if it hasNext()]will return the first instance of such a value. | public static Iterator<T> | find(Iterable<? extends T> iter, T value) Finds an arbitrary value in the input using the equals() method.
an iterator whose next() [if it hasNext()]will return the first instance of the value. | public static Iterator<T> | find(Iterable<? extends T> iter, T value, Comparator<? super T> comp) Finds an arbitrary value in the input using the given Comparator.
an iterator whose next() [if it hasNext()]will return the first instance of the value. | public static Iterator<T> | find(Iterable<? extends T> iter, T value, Equality<T> eq) Finds an arbitrary value in the input using the given Equality operator.
an iterator whose next() [if it hasNext()]will return the first instance of the value. | public static Iterator<T> | find(Iterable<? extends T> iter, UnaryFunctor<T, Boolean> fn) Finds a value in the input for which the given function returns TRUE.
an iterator whose next() [if it hasNext()]will return the first instance of the value. | public static Iterator<T> | find(Iterator<? extends T> iterator, T value) Finds an arbitrary value in the input using the equals() method.
an iterator whose next() [if it hasNext()]will return the first instance of the value. | public static Iterator<T> | find(Iterator<? extends T> iterator, T value, Comparator<? super T> comp) Finds an arbitrary value in the input using the given Comparator.
an iterator whose next() [if it hasNext()]will return the first instance of the value. | public static Iterator<T> | find(Iterator<? extends T> iterator, T value, Equality<T> eq) Finds an arbitrary value in the input using the given Equality operator.
an iterator whose next() [if it hasNext()]will return the first instance of the value. | public static Iterator<T> | find(Iterator<? extends T> iterator, UnaryFunctor<T, Boolean> eq) Finds a value in the input for which the given function returns TRUE.
an iterator whose next() [if it hasNext()]will return the first instance of such a value. | public static Iterator<T> | findAdjacent(T[] ts) Locates the first/next pair of adjacent elements in the array that
are the same value, using the equals() method.
an iterator whose next() [if it hasNext()] points to the first ofa pair of adjacent equivalent values. | public static Iterator<T> | findAdjacent(T[] ts, Comparator<? super T> comp) Locates the first/next pair of adjacent elements in the array that
are the same value, using the given comparator.
an iterator whose next() [if it hasNext()] points to the first ofa pair of adjacent equivalent values. | public static Iterator<T> | findAdjacent(T[] ts, BinaryFunctor<T, T, Boolean> eq) Locates the first/next pair of adjacent elements in the array that
are the same value, using the given functor. | public static Iterator<T> | findAdjacent(Iterable<? extends T> iter) Locates the first/next pair of adjacent elements in the input that
are the same value, using the equals() method.
an iterator whose next() [if it hasNext()] points to the first ofa pair of adjacent equivalent values. | public static Iterator<T> | findAdjacent(Iterable<? extends T> iter, Comparator<? super T> comp) Locates the first/next pair of adjacent elements in the input that
are the same value, using the given comparator.
an iterator whose next() [if it hasNext()] points to the first ofa pair of adjacent equivalent values. | public static Iterator<T> | findAdjacent(Iterable<? extends T> iter, BinaryFunctor<T, T, Boolean> eq) Locates the first/next pair of adjacent elements in the input that
are the same value, using the given functor. | public static Iterator<T> | findAdjacent(Iterator<? extends T> iterator) Locates the first/next pair of adjacent elements in an iteration that
are the same value, using the equals() method.
an iterator whose next() [if it hasNext()] points to the first ofa pair of adjacent equivalent values. | public static Iterator<T> | findAdjacent(Iterator<? extends T> iterator, Comparator<? super T> comp) Locates the first/next pair of adjacent elements in an iteration that
are the same value, using the given comparator.
an iterator whose next() [if it hasNext()] points to the first ofa pair of adjacent equivalent values. | public static Iterator<T> | findAdjacent(Iterator<? extends T> iterator, BinaryFunctor<T, T, Boolean> eq) Locates the first/next pair of adjacent elements in an iteration that
are the same value, using the given functor. | public static Iterator<T> | findElement(T[] ts, T[] values) Finds first/next element in the array that is also in the values array.
an iterator whose next() [if it hasNext()] will return the first instance of anyelement found in the array of values. | public static Iterator<T> | findElement(T[] ts, Collection<? extends T> values) Finds first/next element in the array that is also in the collection of values, using
the collection's contains() method.
an iterator whose next() [if it hasNext()] will return the first instance of anyelement found in the collection of values. | public static Iterator<T> | findElement(T[] ts, T[] values, Comparator<? super T> comp) Finds first/next element in the array that is also in the values array, using
the given Comparator to compare values.
an iterator whose next() [if it hasNext()] will return the first instance of anyelement found in the array of values. | public static Iterator<T> | findElement(T[] ts, Collection<? extends T> values, Comparator<? super T> comp) Finds first/next element in the array that is also in the values collection, using
the given functor to compare values.
an iterator whose next() [if it hasNext()] will return the first instance of anyelement found in collection of values. | public static Iterator<T> | findElement(T[] ts, T[] values, BinaryFunctor<T, T, Boolean> bf) Finds first/next element in the array that is also in the values array, using
the given functor to compare values.
an iterator whose next() [if it hasNext()] will return the first instance of anyelement found in the array of values. | public static Iterator<T> | findElement(T[] ts, Collection<? extends T> values, BinaryFunctor<T, T, Boolean> bf) Finds first/next element in the input that is in the values collection, using
the given functor to compare values.
an iterator whose next() [if it hasNext()] will return the first instance of anyelement found in collection of values. | public static Iterator<T> | findElement(Iterable<? extends T> iter, T[] values) Finds first/next value in the input that is an element of the given array.
an iterator whose next() [if it hasNext()] will returnthe first instance of any element found in the array of values. | public static Iterator<T> | findElement(Iterable<? extends T> iter, Collection<? extends T> values) Finds first/next value in the input that is an element of the given collection, using
the collection's contains() method.
an iterator whose next() [if it hasNext()] will returnthe first instance of any element found in the collection of values. | public static Iterator<T> | findElement(Iterable<? extends T> iter, T[] values, Comparator<? super T> comp) Finds first/next value in the input that is an element of the given array, using
the given Comparator to compare values.
an iterator whose next() [if it hasNext()] will returnthe first instance of any element found in the array of values. | public static Iterator<T> | findElement(Iterable<? extends T> iter, Collection<? extends T> values, Comparator<? super T> comp) Finds first/next value in the input that is an element of the given collection, using
the given functor to compare values.
an iterator whose next() [if it hasNext()] will returnthe first instance of any element found in collection of values. | public static Iterator<T> | findElement(Iterable<? extends T> iter, T[] values, BinaryFunctor<T, T, Boolean> bf) Finds first/next value in the input that is an element of the given array, using
the given functor to compare values.
an iterator whose next() [if it hasNext()] will returnthe first instance of any element found in the array of values. | public static Iterator<T> | findElement(Iterable<? extends T> iter, Collection<? extends T> values, BinaryFunctor<T, T, Boolean> bf) Finds first/next value in the input that is an element of the given collection, using
the given functor to compare values.
an iterator whose next() [if it hasNext()] will returnthe first instance of any element found in collection of values. | public static Iterator<T> | findElement(Iterator<? extends T> iterator, T[] values) Finds first/next value in the input that is an element of the given array.
an iterator whose next() [if it hasNext()] will returnthe first instance of any element found in the array of values. | public static Iterator<T> | findElement(Iterator<? extends T> iterator, Collection<? extends T> values) Finds first/next value in the input that is an element of the given collection, using
the collection's contains() method.
an iterator whose next() [if it hasNext()] will returnthe first instance of any element found in the collection of values. | public static Iterator<T> | findElement(Iterator<? extends T> iterator, T[] values, Comparator<? super T> comp) Finds first/next value in the input that is an element of the given array, using
the given Comparator to compare values.
an iterator whose next() [if it hasNext()] will returnthe first instance of any element found in the array of values. | public static Iterator<T> | findElement(Iterator<? extends T> iterator, Collection<? extends T> values, Comparator<? super T> comp) Finds first/next value in the input that is an element of the given collection, using
the given functor to compare values.
an iterator whose next() [if it hasNext()] will returnthe first instance of any element found in collection of values. | public static Iterator<T> | findElement(Iterator<? extends T> iterator, T[] values, BinaryFunctor<T, T, Boolean> bf) Finds first/next value in the input that is an element of the given array, using
the given functor to compare values.
an iterator whose next() [if it hasNext()] will returnthe first instance of any element found in the array of values. | public static Iterator<T> | findElement(Iterator<? extends T> iterator, Collection<? extends T> values, BinaryFunctor<T, T, Boolean> bf) Finds first/next value in the input that is an element of the given collection, using
the given functor to compare values.
an iterator whose next() [if it hasNext()] will returnthe first instance of any element found in collection of values. | public static Iterator<T> | findMismatch(T[] ts, T[] pattern) Finds the point at which the array differs from the pattern. | public static Iterator<T> | findMismatch(T[] ts, Collection<? extends T> pattern) Finds the point at which the array differs from the pattern.
an iterator based whose next() [if it hasNext()] will return the first element whichdoes not match the corresponding element in the pattern. | public static Iterator<T> | findMismatch(T[] ts, T[] pattern, Comparator<? super T> comp) Finds the point at which the array differs from the pattern, using the given comparator to
determine the mismatch. | public static Iterator<T> | findMismatch(T[] ts, Collection<? extends T> pattern, Comparator<? super T> comp) Finds the point at which the array differs from the pattern, using the given comparator to
determine the mismatch. | public static Iterator<T> | findMismatch(T[] ts, T[] pattern, BinaryFunctor<T, T, Boolean> neq) Finds the point at which the array differs from the pattern, using the given functor to
determine the mismatch. | public static Iterator<T> | findMismatch(T[] ts, Collection<? extends T> pattern, BinaryFunctor<T, T, Boolean> neq) Finds the point at which the array differs from the pattern, using the given functor to
determine the mismatch. | public static Iterator<T> | findMismatch(Iterable<? extends T> iter, T[] pattern) Finds the point at which the input differs from the pattern. | public static Iterator<T> | findMismatch(Iterable<? extends T> iter, Collection<? extends T> pattern) Finds the point at which the input differs from the pattern.
an iterator based whose next() [if it hasNext()] will return the first element whichdoes not match the corresponding element in the pattern. | public static Iterator<T> | findMismatch(Iterable<? extends T> iter, T[] pattern, Comparator<? super T> comp) Finds the point at which the input differs from the pattern, using the given comparator to
determine the mismatch. | public static Iterator<T> | findMismatch(Iterable<? extends T> iter, Collection<? extends T> pattern, Comparator<? super T> comp) Finds the point at which the input differs from the pattern, using the given comparator to
determine the mismatch. | public static Iterator<T> | findMismatch(Iterable<? extends T> iter, T[] pattern, BinaryFunctor<T, T, Boolean> neq) Finds the point at which the input differs from the pattern, using the given functor to
determine the mismatch. | public static Iterator<T> | findMismatch(Iterable<? extends T> iter, Collection<? extends T> pattern, BinaryFunctor<T, T, Boolean> neq) Finds the point at which the input differs from the pattern, using the given functor to
determine the mismatch. | public static Iterator<T> | findMismatch(Iterator<? extends T> iterator, T[] pattern) Finds the point at which the input differs from the pattern. | public static Iterator<T> | findMismatch(Iterator<? extends T> iterator, Collection<? extends T> pattern) Finds the point at which the input differs from the pattern.
an iterator based whose next() [if it hasNext()] will return the first element whichdoes not match the corresponding element in the pattern. | public static Iterator<T> | findMismatch(Iterator<? extends T> iterator, T[] pattern, Comparator<? super T> comp) Finds the point at which the input differs from the pattern, using the given comparator to
determine the mismatch. | public static Iterator<T> | findMismatch(Iterator<? extends T> iterator, Collection<? extends T> pattern, Comparator<? super T> comp) Finds the point at which the input differs from the pattern, using the given comparator to
determine the mismatch. | public static Iterator<T> | findMismatch(Iterator<? extends T> iterator, T[] pattern, BinaryFunctor<T, T, Boolean> neq) Finds the point at which the input differs from the pattern, using the given functor to
determine the mismatch. | public static Iterator<T> | findMismatch(Iterator<? extends T> iterator, Collection<? extends T> pattern, BinaryFunctor<T, T, Boolean> neq) Finds the point at which the input differs from the pattern, using the given functor to
determine the mismatch. | public static Iterator<T> | findRepeated(T[] ts, int count, T value) Finds first/next arbitrary length run of a given value in the input. | public static Iterator<T> | findRepeated(T[] ts, int count, T value, Comparator<? super T> comp) Finds first/next arbitrary length run of a given value in the input using the given
comparator. | public static Iterator<T> | findRepeated(T[] ts, int count, T value, Equality<T> eq) Finds first/next arbitrary length run of a given value in the input using the given
equality function. | public static Iterator<T> | findRepeated(T[] ts, int count, UnaryFunctor<T, Boolean> eq) Finds first/next arbitrary length run of elements in the input for which the
given function returns TRUE. | public static Iterator<T> | findRepeated(Iterable<? extends T> iter, int count, T value) Finds first/next arbitrary length run of a given value in the input. | public static Iterator<T> | findRepeated(Iterable<? extends T> iter, int count, T value, Comparator<? super T> comp) Finds first/next arbitrary length run of a given value in the input using the given
comparator. | public static Iterator<T> | findRepeated(Iterable<? extends T> iter, int count, T value, Equality<T> eq) Finds first/next arbitrary length run of a given value in the input using the given
equality function. | public static Iterator<T> | findRepeated(Iterable<? extends T> iter, int count, UnaryFunctor<T, Boolean> eq) Finds first/next arbitrary length run of elements in the input for which the
given function returns TRUE. | public static Iterator<T> | findRepeated(Iterator<? extends T> iterator, int count, T value) Finds first/next arbitrary length run of a given value in an iteration. | public static Iterator<T> | findRepeated(Iterator<? extends T> iterator, int count, T value, Comparator<? super T> comp) Finds first/next arbitrary length run of a given value in an iteration using the given
comparator. | public static Iterator<T> | findRepeated(Iterator<? extends T> iterator, int count, T value, Equality<T> eq) Finds first/next arbitrary length run of a given value in an iteration using the given
equality function. | public static Iterator<T> | findRepeated(Iterator<? extends T> iterator, int count, UnaryFunctor<T, Boolean> eq) Finds first/next arbitrary length run of elements in an iteration for which the
given function returns TRUE. | public static Iterator<T> | findSequence(T[] ts, T[] pattern) Finds the given pattern in the input using the equals method.
an iterator whose next() [if it hasNext()] will return the first element of asequence that matches the pattern. | public static Iterator<T> | findSequence(T[] ts, Collection<? extends T> pattern) Finds the given pattern in the input using the equals method.
an iterator whose next() [if it hasNext()] will return the first element of asequence that matches the pattern. | public static Iterator<T> | findSequence(T[] ts, T[] pattern, Comparator<? super T> comp) Finds the given pattern in the input using the given comparator to determine equivalence.
an iterator whose next() [if it hasNext()] will return the first element of asequence that matches the pattern. | public static Iterator<T> | findSequence(T[] ts, Collection<? extends T> pattern, Comparator<T> comp) Finds the given pattern in the input using the given comparator to determine equivalence.
an iterator whose next() [if it hasNext()] will return the first element of asequence that matches the pattern. | public static Iterator<T> | findSequence(T[] ts, T[] pattern, BinaryFunctor<T, T, Boolean> fn) Finds the given pattern in the input using the given functor to determine equivalence.
an iterator whose next() [if it hasNext()] will return the first element of asequence that matches the pattern. | public static Iterator<T> | findSequence(T[] ts, Collection<? extends T> pattern, BinaryFunctor<T, T, Boolean> fn) Finds the given pattern in the input using the given functor to determine equivalence.
an iterator whose next() [if it hasNext()] will return the first element of asequence that matches the pattern. | public static Iterator<T> | findSequence(Iterable<? extends T> iter, T[] pattern) Finds the given pattern in the input using the equals method.
an iterator whose next() [if it hasNext()] will return the first element of asequence that matches the pattern. | public static Iterator<T> | findSequence(Iterable<? extends T> iter, Collection<? extends T> pattern) Finds the given pattern in the input using the equals method.
an iterator whose next() [if it hasNext()] will return the first element of asequence that matches the pattern. | public static Iterator<T> | findSequence(Iterable<? extends T> iter, T[] pattern, Comparator<? super T> comp) Finds the given pattern in the input using the given comparator to determine equivalence.
an iterator whose next() [if it hasNext()] will return the first element of asequence that matches the pattern. | public static Iterator<T> | findSequence(Iterable<? extends T> iter, Collection<? extends T> pattern, Comparator<T> comp) Finds the given pattern in the input using the given comparator to determine equivalence.
an iterator whose next() [if it hasNext()] will return the first element of asequence that matches the pattern. | public static Iterator<T> | findSequence(Iterable<? extends T> iter, T[] pattern, BinaryFunctor<T, T, Boolean> fn) Finds the given pattern in the input using the given functor to determine equivalence.
an iterator whose next() [if it hasNext()] will return the first element of asequence that matches the pattern. | public static Iterator<T> | findSequence(Iterable<? extends T> iter, Collection<? extends T> pattern, BinaryFunctor<T, T, Boolean> fn) Finds the given pattern in the input using the given functor to determine equivalence.
an iterator whose next() [if it hasNext()] will return the first element of asequence that matches the pattern. | public static Iterator<T> | findSequence(Iterator<? extends T> iterator, T[] pattern) Finds the given pattern in the input using the equals method.
an iterator whose next() [if it hasNext()] will return the first element of asequence that matches the pattern. | public static Iterator<T> | findSequence(Iterator<? extends T> iterator, Collection<? extends T> pattern) Finds the given pattern in the input using the equals method.
an iterator whose next() [if it hasNext()] will return the first element of asequence that matches the pattern. | public static Iterator<T> | findSequence(Iterator<? extends T> iterator, T[] pattern, Comparator<? super T> comp) Finds the given pattern in the input using the given comparator to determine equivalence.
an iterator whose next() [if it hasNext()] will return the first element of asequence that matches the pattern. | public static Iterator<T> | findSequence(Iterator<? extends T> iterator, Collection<? extends T> pattern, Comparator<T> comp) Finds the given pattern in the collection using the given comparator to determine equivalence.
an iterator whose next() [if it hasNext()] will return the first element of asequence that matches the pattern. | public static Iterator<T> | findSequence(Iterator<? extends T> iterator, T[] pattern, BinaryFunctor<T, T, Boolean> fn) Finds the given pattern in the collection using the given functor to determine equivalence.
an iterator whose next() [if it hasNext()] will return the first element of asequence that matches the pattern. | public static Iterator<T> | findSequence(Iterator<? extends T> iterator, Collection<? extends T> pattern, BinaryFunctor<T, T, Boolean> fn) Finds the given pattern in the collection using the given functor to determine equivalence.
an iterator whose next() [if it hasNext()] will return the first element of asequence that matches the pattern. |
find | public static Iterator<T> find(T[] ts, T value)(Code) | | Finds an arbitrary value in the array using the equals() method.
an iterator whose next() [if it hasNext()]will return the first instance of the value. If the value is not in thearray, then the returned iterator's hasNext() will report false. |
find | public static Iterator<T> find(T[] ts, T value, Comparator<? super T> comp)(Code) | | Finds an arbitrary value in the array using the given Comparator.
an iterator whose next() [if it hasNext()]will return the first instance of the value. If the value is not in thearray, then the returned iterator's hasNext() will report false. |
find | public static Iterator<T> find(T[] ts, T value, Equality<T> eq)(Code) | | Finds an arbitrary value in the array using the given Equality operator.
an iterator whose next() [if it hasNext()]will return the first instance of the value. If the value is not in thearray, then the returned iterator's hasNext() will report false. |
find | public static Iterator<T> find(T[] ts, UnaryFunctor<T, Boolean> fn)(Code) | | Finds a value in the input for which the given function returns TRUE.
an iterator whose next() [if it hasNext()]will return the first instance of such a value. If no such value is in thearray, then the returned iterator's hasNext() will report false. |
find | public static Iterator<T> find(Iterable<? extends T> iter, T value)(Code) | | Finds an arbitrary value in the input using the equals() method.
an iterator whose next() [if it hasNext()]will return the first instance of the value. If the value is not in theinput, then the returned iterator's hasNext() will report false. |
find | public static Iterator<T> find(Iterable<? extends T> iter, T value, Comparator<? super T> comp)(Code) | | Finds an arbitrary value in the input using the given Comparator.
an iterator whose next() [if it hasNext()]will return the first instance of the value. If the value is not in theinput, then the returned iterator's hasNext() will report false. |
find | public static Iterator<T> find(Iterable<? extends T> iter, T value, Equality<T> eq)(Code) | | Finds an arbitrary value in the input using the given Equality operator.
an iterator whose next() [if it hasNext()]will return the first instance of the value. If the value is not in theinput, then the returned iterator's hasNext() will report false. |
find | public static Iterator<T> find(Iterable<? extends T> iter, UnaryFunctor<T, Boolean> fn)(Code) | | Finds a value in the input for which the given function returns TRUE.
an iterator whose next() [if it hasNext()]will return the first instance of the value. If the value is not in theinput, then the returned iterator's hasNext() will report false. |
find | public static Iterator<T> find(Iterator<? extends T> iterator, T value)(Code) | | Finds an arbitrary value in the input using the equals() method.
an iterator whose next() [if it hasNext()]will return the first instance of the value. If the value is not in theinput, then the returned iterator's hasNext() will report false. |
find | public static Iterator<T> find(Iterator<? extends T> iterator, T value, Comparator<? super T> comp)(Code) | | Finds an arbitrary value in the input using the given Comparator.
an iterator whose next() [if it hasNext()]will return the first instance of the value. If the value is not in theinput, then the returned iterator's hasNext() will report false. |
find | public static Iterator<T> find(Iterator<? extends T> iterator, T value, Equality<T> eq)(Code) | | Finds an arbitrary value in the input using the given Equality operator.
an iterator whose next() [if it hasNext()]will return the first instance of the value. If the value is not in theinput, then the returned iterator's hasNext() will report false. |
find | public static Iterator<T> find(Iterator<? extends T> iterator, UnaryFunctor<T, Boolean> eq)(Code) | | Finds a value in the input for which the given function returns TRUE.
an iterator whose next() [if it hasNext()]will return the first instance of such a value. If no such value is in theinput, then the returned iterator's hasNext() will report false. |
findAdjacent | public static Iterator<T> findAdjacent(T[] ts)(Code) | | Locates the first/next pair of adjacent elements in the array that
are the same value, using the equals() method.
an iterator whose next() [if it hasNext()] points to the first ofa pair of adjacent equivalent values. If no such pair exists, then theiterator's hasNext() will be false. |
findAdjacent | public static Iterator<T> findAdjacent(T[] ts, Comparator<? super T> comp)(Code) | | Locates the first/next pair of adjacent elements in the array that
are the same value, using the given comparator.
an iterator whose next() [if it hasNext()] points to the first ofa pair of adjacent equivalent values. If no such pair exists, then theiterator's hasNext() will be false. |
findAdjacent | public static Iterator<T> findAdjacent(T[] ts, BinaryFunctor<T, T, Boolean> eq)(Code) | | Locates the first/next pair of adjacent elements in the array that
are the same value, using the given functor. The functor should return
TRUE when two values are to be considered equal.
an iterator whose next() [if it hasNext()] points to the first ofa pair of adjacent equivalent values. If no such pair exists, then theiterator's hasNext() will be false. |
findAdjacent | public static Iterator<T> findAdjacent(Iterable<? extends T> iter)(Code) | | Locates the first/next pair of adjacent elements in the input that
are the same value, using the equals() method.
an iterator whose next() [if it hasNext()] points to the first ofa pair of adjacent equivalent values. If no such pair exists, then theiterator's hasNext() will be false. |
findAdjacent | public static Iterator<T> findAdjacent(Iterable<? extends T> iter, Comparator<? super T> comp)(Code) | | Locates the first/next pair of adjacent elements in the input that
are the same value, using the given comparator.
an iterator whose next() [if it hasNext()] points to the first ofa pair of adjacent equivalent values. If no such pair exists, then theiterator's hasNext() will be false. |
findAdjacent | public static Iterator<T> findAdjacent(Iterable<? extends T> iter, BinaryFunctor<T, T, Boolean> eq)(Code) | | Locates the first/next pair of adjacent elements in the input that
are the same value, using the given functor. The functor should return
TRUE when two values are to be considered equal.
an iterator whose next() [if it hasNext()] points to the first ofa pair of adjacent equivalent values. If no such pair exists, then theiterator's hasNext() will be false. |
findAdjacent | public static Iterator<T> findAdjacent(Iterator<? extends T> iterator)(Code) | | Locates the first/next pair of adjacent elements in an iteration that
are the same value, using the equals() method.
an iterator whose next() [if it hasNext()] points to the first ofa pair of adjacent equivalent values. If no such pair exists, then theiterator's hasNext() will be false. |
findAdjacent | public static Iterator<T> findAdjacent(Iterator<? extends T> iterator, Comparator<? super T> comp)(Code) | | Locates the first/next pair of adjacent elements in an iteration that
are the same value, using the given comparator.
an iterator whose next() [if it hasNext()] points to the first ofa pair of adjacent equivalent values. If no such pair exists, then theiterator's hasNext() will be false. |
findAdjacent | public static Iterator<T> findAdjacent(Iterator<? extends T> iterator, BinaryFunctor<T, T, Boolean> eq)(Code) | | Locates the first/next pair of adjacent elements in an iteration that
are the same value, using the given functor. The functor should return
TRUE when two values are to be considered equal.
an iterator whose next() [if it hasNext()] points to the first ofa pair of adjacent equivalent values. If no such pair exists, then theiterator's hasNext() will be false. |
findElement | public static Iterator<T> findElement(T[] ts, T[] values)(Code) | | Finds first/next element in the array that is also in the values array.
an iterator whose next() [if it hasNext()] will return the first instance of anyelement found in the array of values. If no such element is found then the returnediterator's hasNext() will report false. |
findElement | public static Iterator<T> findElement(T[] ts, Collection<? extends T> values)(Code) | | Finds first/next element in the array that is also in the collection of values, using
the collection's contains() method.
an iterator whose next() [if it hasNext()] will return the first instance of anyelement found in the collection of values. If no such element is found then the returnediterator's hasNext() will report false. |
findElement | public static Iterator<T> findElement(T[] ts, T[] values, Comparator<? super T> comp)(Code) | | Finds first/next element in the array that is also in the values array, using
the given Comparator to compare values.
an iterator whose next() [if it hasNext()] will return the first instance of anyelement found in the array of values. If no such element is found then the returnediterator's hasNext() will report false. |
findElement | public static Iterator<T> findElement(T[] ts, Collection<? extends T> values, Comparator<? super T> comp)(Code) | | Finds first/next element in the array that is also in the values collection, using
the given functor to compare values.
an iterator whose next() [if it hasNext()] will return the first instance of anyelement found in collection of values. If no such value is found then the returnediterator's hasNext() will report false. |
findElement | public static Iterator<T> findElement(T[] ts, T[] values, BinaryFunctor<T, T, Boolean> bf)(Code) | | Finds first/next element in the array that is also in the values array, using
the given functor to compare values.
an iterator whose next() [if it hasNext()] will return the first instance of anyelement found in the array of values. If no such element is found then the returnediterator's hasNext() will report false. |
findElement | public static Iterator<T> findElement(T[] ts, Collection<? extends T> values, BinaryFunctor<T, T, Boolean> bf)(Code) | | Finds first/next element in the input that is in the values collection, using
the given functor to compare values.
an iterator whose next() [if it hasNext()] will return the first instance of anyelement found in collection of values. If no such value is found then the returnediterator's hasNext() will report false. |
findElement | public static Iterator<T> findElement(Iterable<? extends T> iter, T[] values)(Code) | | Finds first/next value in the input that is an element of the given array.
an iterator whose next() [if it hasNext()] will returnthe first instance of any element found in the array of values. If no such element isfound then the returned iterator's hasNext() will report false. |
findElement | public static Iterator<T> findElement(Iterable<? extends T> iter, Collection<? extends T> values)(Code) | | Finds first/next value in the input that is an element of the given collection, using
the collection's contains() method.
an iterator whose next() [if it hasNext()] will returnthe first instance of any element found in the collection of values. If no such elementis found then the returned iterator's hasNext() will report false. |
findElement | public static Iterator<T> findElement(Iterable<? extends T> iter, T[] values, Comparator<? super T> comp)(Code) | | Finds first/next value in the input that is an element of the given array, using
the given Comparator to compare values.
an iterator whose next() [if it hasNext()] will returnthe first instance of any element found in the array of values. If no such element isfound then the returned iterator's hasNext() will report false. |
findElement | public static Iterator<T> findElement(Iterable<? extends T> iter, Collection<? extends T> values, Comparator<? super T> comp)(Code) | | Finds first/next value in the input that is an element of the given collection, using
the given functor to compare values.
an iterator whose next() [if it hasNext()] will returnthe first instance of any element found in collection of values. If no such value isfound then the returned iterator's hasNext() will report false. |
findElement | public static Iterator<T> findElement(Iterable<? extends T> iter, T[] values, BinaryFunctor<T, T, Boolean> bf)(Code) | | Finds first/next value in the input that is an element of the given array, using
the given functor to compare values.
an iterator whose next() [if it hasNext()] will returnthe first instance of any element found in the array of values. If no such element isfound then the returned iterator's hasNext() will report false. |
findElement | public static Iterator<T> findElement(Iterable<? extends T> iter, Collection<? extends T> values, BinaryFunctor<T, T, Boolean> bf)(Code) | | Finds first/next value in the input that is an element of the given collection, using
the given functor to compare values.
an iterator whose next() [if it hasNext()] will returnthe first instance of any element found in collection of values. If no such value isfound then the returned iterator's hasNext() will report false. |
findElement | public static Iterator<T> findElement(Iterator<? extends T> iterator, T[] values)(Code) | | Finds first/next value in the input that is an element of the given array.
an iterator whose next() [if it hasNext()] will returnthe first instance of any element found in the array of values. If no such element isfound then the returned iterator's hasNext() will report false. |
findElement | public static Iterator<T> findElement(Iterator<? extends T> iterator, Collection<? extends T> values)(Code) | | Finds first/next value in the input that is an element of the given collection, using
the collection's contains() method.
an iterator whose next() [if it hasNext()] will returnthe first instance of any element found in the collection of values. If no such elementis found then the returned iterator's hasNext() will report false. |
findElement | public static Iterator<T> findElement(Iterator<? extends T> iterator, T[] values, Comparator<? super T> comp)(Code) | | Finds first/next value in the input that is an element of the given array, using
the given Comparator to compare values.
an iterator whose next() [if it hasNext()] will returnthe first instance of any element found in the array of values. If no such element isfound then the returned iterator's hasNext() will report false. |
findElement | public static Iterator<T> findElement(Iterator<? extends T> iterator, Collection<? extends T> values, Comparator<? super T> comp)(Code) | | Finds first/next value in the input that is an element of the given collection, using
the given functor to compare values.
an iterator whose next() [if it hasNext()] will returnthe first instance of any element found in collection of values. If no such value isfound then the returned iterator's hasNext() will report false. |
findElement | public static Iterator<T> findElement(Iterator<? extends T> iterator, T[] values, BinaryFunctor<T, T, Boolean> bf)(Code) | | Finds first/next value in the input that is an element of the given array, using
the given functor to compare values.
an iterator whose next() [if it hasNext()] will returnthe first instance of any element found in the array of values. If no such element isfound then the returned iterator's hasNext() will report false. |
findElement | public static Iterator<T> findElement(Iterator<? extends T> iterator, Collection<? extends T> values, BinaryFunctor<T, T, Boolean> bf)(Code) | | Finds first/next value in the input that is an element of the given collection, using
the given functor to compare values.
an iterator whose next() [if it hasNext()] will returnthe first instance of any element found in collection of values. If no such value isfound then the returned iterator's hasNext() will report false. |
findMismatch | public static Iterator<T> findMismatch(T[] ts, T[] pattern)(Code) | | Finds the point at which the array differs from the pattern.
an iterator based whose next() [if it hasNext()] will return the first element whichdoes not match the corresponding element in the pattern. If the pattern matches the arraybut is longer, the returned iterator's hasNext() will report false. If the pattern matchesthe array but is shorter, the returned iterator will point at the next element in the arrayafter the length of the pattern. |
findMismatch | public static Iterator<T> findMismatch(T[] ts, Collection<? extends T> pattern)(Code) | | Finds the point at which the array differs from the pattern.
an iterator based whose next() [if it hasNext()] will return the first element whichdoes not match the corresponding element in the pattern. If the pattern matches the arraybut is longer, the returned iterator's hasNext() will report false. If the pattern matchesthe array but is shorter, the returned iterator will point at the next element in the arrayafter the length of the pattern. |
findMismatch | public static Iterator<T> findMismatch(T[] ts, T[] pattern, Comparator<? super T> comp)(Code) | | Finds the point at which the array differs from the pattern, using the given comparator to
determine the mismatch.
an iterator based whose next() [if it hasNext()] will return the first element whichdoes not match the corresponding element in the pattern. If the pattern matches the arraybut is longer, the returned iterator's hasNext() will report false. If the pattern matchesthe array but is shorter, the returned iterator will point at the next element in the arrayafter the length of the pattern. |
findMismatch | public static Iterator<T> findMismatch(T[] ts, Collection<? extends T> pattern, Comparator<? super T> comp)(Code) | | Finds the point at which the array differs from the pattern, using the given comparator to
determine the mismatch.
an iterator based whose next() [if it hasNext()] will return the first element whichdoes not match the corresponding element in the pattern. If the pattern matches the arraybut is longer, the returned iterator's hasNext() will report false. If the pattern matchesthe array but is shorter, the returned iterator will point at the next element in the arrayafter the length of the pattern. |
findMismatch | public static Iterator<T> findMismatch(T[] ts, T[] pattern, BinaryFunctor<T, T, Boolean> neq)(Code) | | Finds the point at which the array differs from the pattern, using the given functor to
determine the mismatch. The functor should return TRUE if a given pair of elements does
not match.
an iterator based whose next() [if it hasNext()] will return the first element whichdoes not match the corresponding element in the pattern. If the pattern matches the arraybut is longer, the returned iterator's hasNext() will report false. If the pattern matchesthe array but is shorter, the returned iterator will point at the next element in the arrayafter the length of the pattern. |
findMismatch | public static Iterator<T> findMismatch(T[] ts, Collection<? extends T> pattern, BinaryFunctor<T, T, Boolean> neq)(Code) | | Finds the point at which the array differs from the pattern, using the given functor to
determine the mismatch. The functor should return TRUE if a given pair of elements does
not match.
an iterator based whose next() [if it hasNext()] will return the first element whichdoes not match the corresponding element in the pattern. If the pattern matches the arraybut is longer, the returned iterator's hasNext() will report false. If the pattern matchesthe array but is shorter, the returned iterator will point at the next element in the arrayafter the length of the pattern. |
findMismatch | public static Iterator<T> findMismatch(Iterable<? extends T> iter, T[] pattern)(Code) | | Finds the point at which the input differs from the pattern.
an iterator based whose next() [if it hasNext()] will return the first element whichdoes not match the corresponding element in the pattern. If the pattern matches the arraybut is longer, the returned iterator's hasNext() will report false. If the pattern matchesthe array but is shorter, the returned iterator will point at the next element in the arrayafter the length of the pattern. |
findMismatch | public static Iterator<T> findMismatch(Iterable<? extends T> iter, Collection<? extends T> pattern)(Code) | | Finds the point at which the input differs from the pattern.
an iterator based whose next() [if it hasNext()] will return the first element whichdoes not match the corresponding element in the pattern. If the pattern matches the inputbut is longer, the returned iterator's hasNext() will report false. If the pattern matchesthe input but is shorter, the returned iterator will point at the next element in the inputafter the length of the pattern. |
findMismatch | public static Iterator<T> findMismatch(Iterable<? extends T> iter, T[] pattern, Comparator<? super T> comp)(Code) | | Finds the point at which the input differs from the pattern, using the given comparator to
determine the mismatch.
an iterator based whose next() [if it hasNext()] will return the first element whichdoes not match the corresponding element in the pattern. If the pattern matches the arraybut is longer, the returned iterator's hasNext() will report false. If the pattern matchesthe array but is shorter, the returned iterator will point at the next element in the arrayafter the length of the pattern. |
findMismatch | public static Iterator<T> findMismatch(Iterable<? extends T> iter, Collection<? extends T> pattern, Comparator<? super T> comp)(Code) | | Finds the point at which the input differs from the pattern, using the given comparator to
determine the mismatch.
an iterator based whose next() [if it hasNext()] will return the first element whichdoes not match the corresponding element in the pattern. If the pattern matches the inputbut is longer, the returned iterator's hasNext() will report false. If the pattern matchesthe input but is shorter, the returned iterator will point at the next element in the inputafter the length of the pattern. |
findMismatch | public static Iterator<T> findMismatch(Iterable<? extends T> iter, T[] pattern, BinaryFunctor<T, T, Boolean> neq)(Code) | | Finds the point at which the input differs from the pattern, using the given functor to
determine the mismatch. The functor should return TRUE if a given pair of elements does
not match.
an iterator based whose next() [if it hasNext()] will return the first element whichdoes not match the corresponding element in the pattern. If the pattern matches the arraybut is longer, the returned iterator's hasNext() will report false. If the pattern matchesthe array but is shorter, the returned iterator will point at the next element in the arrayafter the length of the pattern. |
findMismatch | public static Iterator<T> findMismatch(Iterable<? extends T> iter, Collection<? extends T> pattern, BinaryFunctor<T, T, Boolean> neq)(Code) | | Finds the point at which the input differs from the pattern, using the given functor to
determine the mismatch. The functor should return TRUE if a given pair of elements does
not match.
an iterator based whose next() [if it hasNext()] will return the first element whichdoes not match the corresponding element in the pattern. If the pattern matches the arraybut is longer, the returned iterator's hasNext() will report false. If the pattern matchesthe array but is shorter, the returned iterator will point at the next element in the arrayafter the length of the pattern. |
findMismatch | public static Iterator<T> findMismatch(Iterator<? extends T> iterator, T[] pattern)(Code) | | Finds the point at which the input differs from the pattern.
an iterator based whose next() [if it hasNext()] will return the first element whichdoes not match the corresponding element in the pattern. If the pattern matches the arraybut is longer, the returned iterator's hasNext() will report false. If the pattern matchesthe array but is shorter, the returned iterator will point at the next element in the arrayafter the length of the pattern. If the pattern is empty, no input will be consumed. |
findMismatch | public static Iterator<T> findMismatch(Iterator<? extends T> iterator, Collection<? extends T> pattern)(Code) | | Finds the point at which the input differs from the pattern.
an iterator based whose next() [if it hasNext()] will return the first element whichdoes not match the corresponding element in the pattern. If the pattern matches the inputbut is longer, the returned iterator's hasNext() will report false. If the pattern matchesthe input but is shorter, the returned iterator will point at the next element in the inputafter the length of the pattern. If the pattern is empty, no input will be consumed. |
findMismatch | public static Iterator<T> findMismatch(Iterator<? extends T> iterator, T[] pattern, Comparator<? super T> comp)(Code) | | Finds the point at which the input differs from the pattern, using the given comparator to
determine the mismatch.
an iterator based whose next() [if it hasNext()] will return the first element whichdoes not match the corresponding element in the pattern. If the pattern matches the arraybut is longer, the returned iterator's hasNext() will report false. If the pattern matchesthe array but is shorter, the returned iterator will point at the next element in the arrayafter the length of the pattern. If the pattern is empty, no input will be consumed. |
findMismatch | public static Iterator<T> findMismatch(Iterator<? extends T> iterator, Collection<? extends T> pattern, Comparator<? super T> comp)(Code) | | Finds the point at which the input differs from the pattern, using the given comparator to
determine the mismatch.
an iterator based whose next() [if it hasNext()] will return the first element whichdoes not match the corresponding element in the pattern. If the pattern matches the inputbut is longer, the returned iterator's hasNext() will report false. If the pattern matchesthe input but is shorter, the returned iterator will point at the next element in the inputafter the length of the pattern. If the pattern is empty, no input will be consumed. |
findMismatch | public static Iterator<T> findMismatch(Iterator<? extends T> iterator, T[] pattern, BinaryFunctor<T, T, Boolean> neq)(Code) | | Finds the point at which the input differs from the pattern, using the given functor to
determine the mismatch. The functor should return TRUE if a given pair of elements does
not match.
an iterator based whose next() [if it hasNext()] will return the first element whichdoes not match the corresponding element in the pattern. If the pattern matches the arraybut is longer, the returned iterator's hasNext() will report false. If the pattern matchesthe array but is shorter, the returned iterator will point at the next element in the arrayafter the length of the pattern. If the pattern is empty, no input will be consumed. |
findMismatch | public static Iterator<T> findMismatch(Iterator<? extends T> iterator, Collection<? extends T> pattern, BinaryFunctor<T, T, Boolean> neq)(Code) | | Finds the point at which the input differs from the pattern, using the given functor to
determine the mismatch. The functor should return TRUE if a given pair of elements does
not match.
an iterator based whose next() [if it hasNext()] will return the first element whichdoes not match the corresponding element in the pattern. If the pattern matches the arraybut is longer, the returned iterator's hasNext() will report false. If the pattern matchesthe array but is shorter, the returned iterator will point at the next element in the arrayafter the length of the pattern. If the pattern is empty, no input will be consumed. |
findRepeated | public static Iterator<T> findRepeated(T[] ts, int count, T value)(Code) | | Finds first/next arbitrary length run of a given value in the input. Runs of length zero
are well-defined: every input begins with a run of length zero of all possible values.
an iterator based on the given iterator whose next() [if it hasNext()] will returnthe first of n adjacent instances of value. If no run of values of the requested lengthexist in the iteration, then the returned iterator's hasNext() will report false. |
findRepeated | public static Iterator<T> findRepeated(T[] ts, int count, T value, Comparator<? super T> comp)(Code) | | Finds first/next arbitrary length run of a given value in the input using the given
comparator. Runs of length zero are well-defined: every input begins with
a run of length zero of all possible values.
an iterator based on the given iterator whose next() [if it hasNext()] will returnthe first of n adjacent instances of value. If no run of values of the requested lengthexist in the iteration, then the returned iterator's hasNext() will report false. |
findRepeated | public static Iterator<T> findRepeated(T[] ts, int count, T value, Equality<T> eq)(Code) | | Finds first/next arbitrary length run of a given value in the input using the given
equality function. Runs of length zero are well-defined: every input begins with
a run of length zero of all possible values.
an iterator based on the given iterator whose next() [if it hasNext()] will returnthe first of n adjacent instances of value. If no run of values of the requested lengthexist in the iteration, then the returned iterator's hasNext() will report false. |
findRepeated | public static Iterator<T> findRepeated(T[] ts, int count, UnaryFunctor<T, Boolean> eq)(Code) | | Finds first/next arbitrary length run of elements in the input for which the
given function returns TRUE. Runs of length zero are well-defined: every
input begins with a run of length zero of all possible values.
an iterator based on the given iterator whose next() [if ithasNext()] will return the first of n adjacent instances of value. If norun of values of the requested length exist in the iteration, then thereturned iterator's hasNext() will report false. |
findRepeated | public static Iterator<T> findRepeated(Iterable<? extends T> iter, int count, T value)(Code) | | Finds first/next arbitrary length run of a given value in the input. Runs of length zero
are well-defined: every input begins with a run of length zero of all possible values.
an iterator based on the given iterator whose next() [if it hasNext()] will returnthe first of n adjacent instances of value. If no run of values of the requested lengthexist in the iteration, then the returned iterator's hasNext() will report false. |
findRepeated | public static Iterator<T> findRepeated(Iterable<? extends T> iter, int count, T value, Comparator<? super T> comp)(Code) | | Finds first/next arbitrary length run of a given value in the input using the given
comparator. Runs of length zero are well-defined: every input begins with
a run of length zero of all possible values.
an iterator based on the given iterator whose next() [if it hasNext()] will returnthe first of n adjacent instances of value. If no run of values of the requested lengthexist in the iteration, then the returned iterator's hasNext() will report false. |
findRepeated | public static Iterator<T> findRepeated(Iterable<? extends T> iter, int count, T value, Equality<T> eq)(Code) | | Finds first/next arbitrary length run of a given value in the input using the given
equality function. Runs of length zero are well-defined: every input begins with
a run of length zero of all possible values.
an iterator based on the given iterator whose next() [if it hasNext()] will returnthe first of n adjacent instances of value. If no run of values of the requested lengthexist in the iteration, then the returned iterator's hasNext() will report false. |
findRepeated | public static Iterator<T> findRepeated(Iterable<? extends T> iter, int count, UnaryFunctor<T, Boolean> eq)(Code) | | Finds first/next arbitrary length run of elements in the input for which the
given function returns TRUE. Runs of length zero are well-defined: every
input begins with a run of length zero of all possible values.
an iterator based on the given iterator whose next() [if ithasNext()] will return the first of n adjacent instances of value. If norun of values of the requested length exist in the iteration, then thereturned iterator's hasNext() will report false. |
findRepeated | public static Iterator<T> findRepeated(Iterator<? extends T> iterator, int count, T value)(Code) | | Finds first/next arbitrary length run of a given value in an iteration. Runs of length zero
are well-defined: every iteration begins with a run of length zero of all possible values.
an iterator based on the given iterator whose next() [if it hasNext()] will returnthe first of n adjacent instances of value. If no run of values of the requested lengthexist in the iteration, then the returned iterator's hasNext() will report false. |
findRepeated | public static Iterator<T> findRepeated(Iterator<? extends T> iterator, int count, T value, Comparator<? super T> comp)(Code) | | Finds first/next arbitrary length run of a given value in an iteration using the given
comparator. Runs of length zero are well-defined: every iteration begins with
a run of length zero of all possible values.
an iterator based on the given iterator whose next() [if it hasNext()] will returnthe first of n adjacent instances of value. If no run of values of the requested lengthexist in the iteration, then the returned iterator's hasNext() will report false. |
findRepeated | public static Iterator<T> findRepeated(Iterator<? extends T> iterator, int count, T value, Equality<T> eq)(Code) | | Finds first/next arbitrary length run of a given value in an iteration using the given
equality function. Runs of length zero are well-defined: every iteration begins with
a run of length zero of all possible values.
an iterator based on the given iterator whose next() [if it hasNext()] will returnthe first of n adjacent instances of value. If no run of values of the requested lengthexist in the iteration, then the returned iterator's hasNext() will report false. |
findRepeated | public static Iterator<T> findRepeated(Iterator<? extends T> iterator, int count, UnaryFunctor<T, Boolean> eq)(Code) | | Finds first/next arbitrary length run of elements in an iteration for which the
given function returns TRUE. Runs of length zero are well-defined: every
iteration begins with a run of length zero of all possible values.
an iterator based on the given iterator whose next() [if ithasNext()] will return the first of n adjacent instances of value. If norun of values of the requested length exist in the iteration, then thereturned iterator's hasNext() will report false. |
findSequence | public static Iterator<T> findSequence(T[] ts, T[] pattern)(Code) | | Finds the given pattern in the input using the equals method.
an iterator whose next() [if it hasNext()] will return the first element of asequence that matches the pattern. If no such match is found, then the returned iterator'shasNext() will report false. If the pattern is empty, then the iterator will not be advanced. |
findSequence | public static Iterator<T> findSequence(T[] ts, Collection<? extends T> pattern)(Code) | | Finds the given pattern in the input using the equals method.
an iterator whose next() [if it hasNext()] will return the first element of asequence that matches the pattern. If no such match is found, then the returned iterator'shasNext() will report false. If the pattern is empty, then the iterator will not be advanced. |
findSequence | public static Iterator<T> findSequence(T[] ts, T[] pattern, Comparator<? super T> comp)(Code) | | Finds the given pattern in the input using the given comparator to determine equivalence.
an iterator whose next() [if it hasNext()] will return the first element of asequence that matches the pattern. If no such match is found, then the returned iterator'shasNext() will report false. If the pattern is empty, then the iterator will not be advanced. |
findSequence | public static Iterator<T> findSequence(T[] ts, Collection<? extends T> pattern, Comparator<T> comp)(Code) | | Finds the given pattern in the input using the given comparator to determine equivalence.
an iterator whose next() [if it hasNext()] will return the first element of asequence that matches the pattern. If no such match is found, then the returned iterator'shasNext() will report false. If the pattern is empty, then the iterator will not be advanced. |
findSequence | public static Iterator<T> findSequence(T[] ts, T[] pattern, BinaryFunctor<T, T, Boolean> fn)(Code) | | Finds the given pattern in the input using the given functor to determine equivalence.
an iterator whose next() [if it hasNext()] will return the first element of asequence that matches the pattern. If no such match is found, then the returned iterator'shasNext() will report false. If the pattern is empty, then the iterator will not be advanced. |
findSequence | public static Iterator<T> findSequence(T[] ts, Collection<? extends T> pattern, BinaryFunctor<T, T, Boolean> fn)(Code) | | Finds the given pattern in the input using the given functor to determine equivalence.
an iterator whose next() [if it hasNext()] will return the first element of asequence that matches the pattern. If no such match is found, then the returned iterator'shasNext() will report false. If the pattern is empty, then the iterator will not be advanced. |
findSequence | public static Iterator<T> findSequence(Iterable<? extends T> iter, T[] pattern)(Code) | | Finds the given pattern in the input using the equals method.
an iterator whose next() [if it hasNext()] will return the first element of asequence that matches the pattern. If no such match is found, then the returned iterator'shasNext() will report false. If the pattern is empty, then the iterator will not be advanced. |
findSequence | public static Iterator<T> findSequence(Iterable<? extends T> iter, Collection<? extends T> pattern)(Code) | | Finds the given pattern in the input using the equals method.
an iterator whose next() [if it hasNext()] will return the first element of asequence that matches the pattern. If no such match is found, then the returned iterator'shasNext() will report false. If the pattern is empty, then the iterator will not be advanced. |
findSequence | public static Iterator<T> findSequence(Iterable<? extends T> iter, T[] pattern, Comparator<? super T> comp)(Code) | | Finds the given pattern in the input using the given comparator to determine equivalence.
an iterator whose next() [if it hasNext()] will return the first element of asequence that matches the pattern. If no such match is found, then the returned iterator'shasNext() will report false. If the pattern is empty, then the iterator will not be advanced. |
findSequence | public static Iterator<T> findSequence(Iterable<? extends T> iter, Collection<? extends T> pattern, Comparator<T> comp)(Code) | | Finds the given pattern in the input using the given comparator to determine equivalence.
an iterator whose next() [if it hasNext()] will return the first element of asequence that matches the pattern. If no such match is found, then the returned iterator'shasNext() will report false. If the pattern is empty, then the iterator will not be advanced. |
findSequence | public static Iterator<T> findSequence(Iterable<? extends T> iter, T[] pattern, BinaryFunctor<T, T, Boolean> fn)(Code) | | Finds the given pattern in the input using the given functor to determine equivalence.
an iterator whose next() [if it hasNext()] will return the first element of asequence that matches the pattern. If no such match is found, then the returned iterator'shasNext() will report false. If the pattern is empty, then the iterator will not be advanced. |
findSequence | public static Iterator<T> findSequence(Iterable<? extends T> iter, Collection<? extends T> pattern, BinaryFunctor<T, T, Boolean> fn)(Code) | | Finds the given pattern in the input using the given functor to determine equivalence.
an iterator whose next() [if it hasNext()] will return the first element of asequence that matches the pattern. If no such match is found, then the returned iterator'shasNext() will report false. If the pattern is empty, then the iterator will not be advanced. |
findSequence | public static Iterator<T> findSequence(Iterator<? extends T> iterator, T[] pattern)(Code) | | Finds the given pattern in the input using the equals method.
an iterator whose next() [if it hasNext()] will return the first element of asequence that matches the pattern. If no such match is found, then the returned iterator'shasNext() will report false. If the pattern is empty, then the iterator will not be advanced. |
findSequence | public static Iterator<T> findSequence(Iterator<? extends T> iterator, Collection<? extends T> pattern)(Code) | | Finds the given pattern in the input using the equals method.
an iterator whose next() [if it hasNext()] will return the first element of asequence that matches the pattern. If no such match is found, then the returned iterator'shasNext() will report false. If the pattern is empty, then the iterator will not be advanced. |
findSequence | public static Iterator<T> findSequence(Iterator<? extends T> iterator, T[] pattern, Comparator<? super T> comp)(Code) | | Finds the given pattern in the input using the given comparator to determine equivalence.
an iterator whose next() [if it hasNext()] will return the first element of asequence that matches the pattern. If no such match is found, then the returned iterator'shasNext() will report false. If the pattern is empty, then the iterator will not be advanced. |
findSequence | public static Iterator<T> findSequence(Iterator<? extends T> iterator, Collection<? extends T> pattern, Comparator<T> comp)(Code) | | Finds the given pattern in the collection using the given comparator to determine equivalence.
an iterator whose next() [if it hasNext()] will return the first element of asequence that matches the pattern. If no such match is found, then the returned iterator'shasNext() will report false. If the pattern is empty, then the iterator will not be advanced. |
findSequence | public static Iterator<T> findSequence(Iterator<? extends T> iterator, T[] pattern, BinaryFunctor<T, T, Boolean> fn)(Code) | | Finds the given pattern in the collection using the given functor to determine equivalence.
an iterator whose next() [if it hasNext()] will return the first element of asequence that matches the pattern. If no such match is found, then the returned iterator'shasNext() will report false. If the pattern is empty, then the iterator will not be advanced. |
findSequence | public static Iterator<T> findSequence(Iterator<? extends T> iterator, Collection<? extends T> pattern, BinaryFunctor<T, T, Boolean> fn)(Code) | | Finds the given pattern in the collection using the given functor to determine equivalence.
an iterator whose next() [if it hasNext()] will return the first element of asequence that matches the pattern. If no such match is found, then the returned iterator'shasNext() will report false. If the pattern is empty, then the iterator will not be advanced. |
|
|