Java Doc for Find.java in  » Development » jga-Generic-Algorithms » net » sf » jga » algorithms » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Development » jga Generic Algorithms » net.sf.jga.algorithms 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


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.



Method Detail
elementOf
public static UnaryFunctor<T, Boolean> elementOf(T[] values)(Code)



elementOf
public static UnaryFunctor<T, Boolean> elementOf(Collection<? extends T> values)(Code)



elementOf
public static UnaryFunctor<T, Boolean> elementOf(T[] values, Comparator<? super T> comp)(Code)



elementOf
public static UnaryFunctor<T, Boolean> elementOf(Collection<? extends T> values, Comparator<? super T> comp)(Code)



elementOf
public static UnaryFunctor<T, Boolean> elementOf(T[] values, BinaryFunctor<T, T, Boolean> bf)(Code)



elementOf
public static UnaryFunctor<T, Boolean> elementOf(Collection<? extends T> values, BinaryFunctor<T, T, Boolean> bf)(Code)



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.



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.